Skip to content

Commit bc19ea0

Browse files
committed
revert unicorn plugin update
1 parent 5d0a617 commit bc19ea0

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 prettier from 'eslint-config-prettier/flat';
66
import markdown from 'eslint-plugin-markdown';
77
import pluginN from 'eslint-plugin-n';
88
import tseslint from 'typescript-eslint';
9-
import unicorn from 'eslint-plugin-unicorn';
109

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

@@ -28,9 +27,10 @@ export default tseslint.config([
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',
@@ -78,6 +78,9 @@ export default tseslint.config([
7878
// Markdown JS code samples in documentation:
7979
files: ['**/*.md/*.js', '**/*.md/*.ts'],
8080
plugins: { markdown },
81+
languageOptions: {
82+
sourceType: 'module',
83+
},
8184
linterOptions: { noInlineConfig: true },
8285
rules: {
8386
'no-undef': 'off',
@@ -93,5 +96,4 @@ export default tseslint.config([
9396
'unicorn/filename-case': 'off',
9497
},
9598
},
96-
prettier,
9799
]);

package.json

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

0 commit comments

Comments
 (0)