-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
47 lines (46 loc) · 1.17 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
plugins: ['@typescript-eslint', 'jsdoc', 'prettier', 'unicorn'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsdoc/recommended-typescript-flavor',
'plugin:unicorn/recommended',
'prettier',
],
rules: {
eqeqeq: ['error', 'always'],
'unicorn/no-null': 'off',
'unicorn/prefer-ternary': ['error', 'only-single-line'],
'jsdoc/no-undefined-types': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-property-description': 'off',
'prettier/prettier': [
'warn',
{
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
},
],
},
overrides: [
{
files: '**/*.+(js|d.ts)',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint/eslint-plugin'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
],
ignorePatterns: ['node_modules', 'dist'],
}