Skip to content

Commit a00e6d0

Browse files
committed
revert unicorn plugin update
1 parent a84f50c commit a00e6d0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

eslint.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { defineConfig } from 'eslint/config';
66
import prettier from 'eslint-config-prettier/flat';
77
import markdown from 'eslint-plugin-markdown';
88
import pluginN from 'eslint-plugin-n';
9-
import unicorn from 'eslint-plugin-unicorn';
109

1110
import eslintPlugin from './lib/index.js';
1211

@@ -28,9 +27,10 @@ export default defineConfig([
2827
...compat.extends(
2928
'not-an-aardvark/node',
3029
'plugin:@eslint-community/eslint-comments/recommended',
30+
'plugin:unicorn/recommended',
3131
),
32-
unicorn.configs.recommended,
3332
pluginN.configs['flat/recommended'],
33+
prettier,
3434
{
3535
rules: {
3636
'@eslint-community/eslint-comments/no-unused-disable': 'error',
@@ -71,6 +71,9 @@ export default defineConfig([
7171
// Markdown JS code samples in documentation:
7272
files: ['**/*.md/*.js'],
7373
plugins: { markdown },
74+
languageOptions: {
75+
sourceType: 'module',
76+
},
7477
linterOptions: { noInlineConfig: true },
7578
rules: {
7679
'no-undef': 'off',
@@ -84,5 +87,4 @@ export default defineConfig([
8487
'unicorn/filename-case': 'off',
8588
},
8689
},
87-
prettier,
8890
]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"eslint-doc-generator": "^2.2.2",
7171
"eslint-plugin-markdown": "^5.1.0",
7272
"eslint-plugin-n": "^17.21.0",
73-
"eslint-plugin-unicorn": "^60.0.0",
73+
"eslint-plugin-unicorn": "^56.0.1",
7474
"eslint-remote-tester": "^4.0.3",
7575
"eslint-scope": "^8.0.1",
7676
"espree": "^10.0.1",

0 commit comments

Comments
 (0)