Skip to content

Commit b7c8e23

Browse files
committed
Implemented eslint-plugin-import as dev dependency
1 parent c5d4199 commit b7c8e23

File tree

3 files changed

+1824
-53
lines changed

3 files changed

+1824
-53
lines changed

eslint.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import js from '@eslint/js'
2-
import stylisticJS from '@stylistic/eslint-plugin-js'
2+
import importPlugin from 'eslint-plugin-import'
33
import json from '@eslint/json'
44
import markdown from '@eslint/markdown'
5+
import stylisticJS from '@stylistic/eslint-plugin-js'
56
import yml from 'eslint-plugin-yml'
67

78
export default [
89
{
910
files: ['**/*.js', '**/*.mjs'],
1011
languageOptions: { ecmaVersion: 'latest', sourceType: 'script', globals: { chrome: 'readonly' }},
11-
plugins: { 'js-styles': stylisticJS },
12+
plugins: { 'import': importPlugin, 'js-styles': stylisticJS },
1213
rules: {
1314
...js.configs.recommended.rules,
15+
...importPlugin.flatConfigs.recommended.rules,
1416
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
1517
'js-styles/no-trailing-spaces': 'error', // ...except at ends of lines
1618
'js-styles/max-len': ['error', { 'code': 120, // limit lines to 120 chars except if containing...

0 commit comments

Comments
 (0)