Skip to content

Commit fad5ca5

Browse files
committed
Implemented eslint-plugin-import as dev dependency
1 parent 0fe0857 commit fad5ca5

File tree

3 files changed

+1832
-60
lines changed

3 files changed

+1832
-60
lines changed

eslint.config.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import js from '@eslint/js'
22
import globals from 'globals'
3-
import stylisticJS from '@stylistic/eslint-plugin-js'
3+
import importPlugin from 'eslint-plugin-import'
44
import json from '@eslint/json'
55
import markdown from '@eslint/markdown'
66
import regexp from 'eslint-plugin-regexp'
7+
import stylisticJS from '@stylistic/eslint-plugin-js'
78
import yml from 'eslint-plugin-yml'
89

910
export default [
@@ -13,9 +14,11 @@ export default [
1314
ecmaVersion: 'latest', sourceType: 'script',
1415
globals: { ...globals.browser, ...globals.greasemonkey, chatgpt: 'readonly' }
1516
},
16-
plugins: { regexp, 'js-styles': stylisticJS },
17+
plugins: { 'import': importPlugin, 'js-styles': stylisticJS, regexp },
1718
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,
1922
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
2023
'js-styles/no-trailing-spaces': 'error', // ...except at ends of lines
2124
'js-styles/max-len': ['error', { 'code': 120, // limit lines to 120 chars except if containing...

0 commit comments

Comments
 (0)