Skip to content

Commit 2616ce3

Browse files
authored
Clean run-rules-on-codebase script (sindresorhus#2369)
1 parent d812ad1 commit 2616ce3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

test/run-rules-on-codebase/lint.mjs

+1-11
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@ const {
2323
});
2424

2525
const configs = [
26-
// TODO: Use `eslintPluginUnicorn.configs.all` instead when we change preset to flat config
26+
eslintPluginUnicorn.configs['flat/all'],
2727
{
28-
plugins: {
29-
unicorn: eslintPluginUnicorn,
30-
},
31-
rules: eslintPluginUnicorn.configs.all.rules,
3228
linterOptions: {
3329
reportUnusedDisableDirectives: false,
3430
},
@@ -38,8 +34,6 @@ const configs = [
3834
'coverage',
3935
'test/integration/fixtures',
4036
'test/integration/fixtures-local',
41-
// Ignore this file self temporarily, disabling `n/file-extension-in-import` comment cause error
42-
'test/run-rules-on-codebase/lint.mjs',
4337
'rules/utils/lodash.js',
4438
],
4539
},
@@ -55,10 +49,6 @@ const configs = [
5549
'unicorn/consistent-function-scoping': 'off',
5650
// Annoying
5751
'unicorn/no-keyword-prefix': 'off',
58-
'unicorn/no-unsafe-regex': 'off',
59-
// Not ready yet
60-
'unicorn/prefer-string-replace-all': 'off',
61-
'unicorn/prefer-at': 'off',
6252
},
6353
},
6454
{

0 commit comments

Comments
 (0)