-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy patheslint.config.js
More file actions
62 lines (61 loc) · 1.64 KB
/
eslint.config.js
File metadata and controls
62 lines (61 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import js from '@eslint/js';
import globals from 'globals';
import prettier from 'eslint-config-prettier';
import jsdoc from 'eslint-plugin-jsdoc';
export default [
js.configs.recommended,
prettier,
jsdoc.configs['flat/recommended'],
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.node,
...globals.mocha,
},
},
plugins: {
jsdoc,
},
rules: {
'no-underscore-dangle': 'off',
'no-console': 'off',
'no-plusplus': 'off',
'no-use-before-define': 'off',
'no-param-reassign': 'off',
'consistent-return': 'off',
'no-bitwise': 'off',
'no-shadow': 'off',
camelcase: 'off',
'no-continue': 'off',
'no-restricted-syntax': 'off',
'guard-for-in': 'off',
'no-unused-expressions': 'off',
'func-names': 'off',
'max-classes-per-file': 'off',
'class-methods-use-this': 'off',
'no-extend-native': 'off',
'no-self-assign': 'off',
'no-mixed-operators': 'off',
'no-sequences': 'off',
'no-constant-condition': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'array-callback-return': 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-case-declarations': 'off',
'no-confusing-arrow': 'off',
'no-multi-assign': 'off',
'no-restricted-properties': 'off',
'jsdoc/require-jsdoc': 'warn',
'jsdoc/require-description': 'warn',
'jsdoc/require-param': 'warn',
'jsdoc/require-returns': 'warn',
},
},
{
ignores: ['node_modules/**', 'coverage/**', '.nyc_output/**'],
},
];