diff options
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 3bca729..0000000 --- a/eslint.config.js +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | import globals from 'globals' | ||
2 | import js from '@eslint/js' | ||
3 | import importPlugin from 'eslint-plugin-import' | ||
4 | import promisePlugin from 'eslint-plugin-promise' | ||
5 | import nodePlugin from 'eslint-plugin-node' | ||
6 | import jsdoc from 'eslint-plugin-jsdoc' | ||
7 | |||
8 | export default [ | ||
9 | js.configs.recommended, | ||
10 | { | ||
11 | languageOptions: { | ||
12 | ecmaVersion: 2022, | ||
13 | sourceType: 'module', | ||
14 | globals: { | ||
15 | ...globals.browser, | ||
16 | ...globals.node | ||
17 | } | ||
18 | }, | ||
19 | plugins: { | ||
20 | import: importPlugin, | ||
21 | promise: promisePlugin, | ||
22 | node: nodePlugin | ||
23 | }, | ||
24 | rules: { | ||
25 | 'no-unused-vars': ['warn', { | ||
26 | varsIgnorePattern: '^_', | ||
27 | argsIgnorePattern: '^_', | ||
28 | caughtErrorsIgnorePattern: '^ignore|_' | ||
29 | }], | ||
30 | 'import/no-unresolved': 'error', | ||
31 | 'no-console': ['error', { allow: ['info', 'warn', 'error'] }], | ||
32 | eqeqeq: ['error', 'always'], | ||
33 | // 'curly': ['warn', 'multi'], | ||
34 | 'prefer-const': 'error', | ||
35 | 'no-var': 'error', | ||
36 | 'array-callback-return': 'error', | ||
37 | 'no-unexpected-multiline': 'warn' | ||
38 | } | ||
39 | }, | ||
40 | { | ||
41 | files: ['src/*js'], | ||
42 | plugins: { | ||
43 | jsdoc | ||
44 | }, | ||
45 | rules: { | ||
46 | 'jsdoc/require-description': 'warn' | ||
47 | } | ||
48 | } | ||
49 | ] | ||