1
1
import js from '@eslint/js'
2
2
import globals from 'globals'
3
- import stylisticJS from '@stylistic/ eslint-plugin-js '
3
+ import importPlugin from 'eslint-plugin-import '
4
4
import json from '@eslint/json'
5
5
import markdown from '@eslint/markdown'
6
6
import regexp from 'eslint-plugin-regexp'
7
+ import stylisticJS from '@stylistic/eslint-plugin-js'
7
8
import yml from 'eslint-plugin-yml'
8
9
9
10
export default [
@@ -13,9 +14,11 @@ export default [
13
14
ecmaVersion : 'latest' , sourceType : 'script' ,
14
15
globals : { ...globals . browser , ...globals . greasemonkey , chatgpt : 'readonly' }
15
16
} ,
16
- plugins : { regexp , 'js-styles' : stylisticJS } ,
17
+ plugins : { 'import' : importPlugin , 'js-styles' : stylisticJS , regexp } ,
17
18
rules : {
18
- ...js . configs . recommended . rules , ...regexp . configs [ 'flat/recommended' ] . rules ,
19
+ ...js . configs . recommended . rules ,
20
+ ...importPlugin . flatConfigs . recommended . rules ,
21
+ ...regexp . configs [ 'flat/recommended' ] . rules ,
19
22
'indent' : 'off' , 'no-unexpected-multiline' : 'off' , 'key-spacing' : 'off' , // allow whitespace anywhere
20
23
'js-styles/no-trailing-spaces' : 'error' , // ...except at ends of lines
21
24
'js-styles/max-len' : [ 'error' , { 'code' : 120 , // limit lines to 120 chars except if containing...
0 commit comments