forked from linuxfoundation/crowd.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
76 lines (76 loc) · 2.09 KB
/
Copy path.eslintrc.js
File metadata and controls
76 lines (76 loc) · 2.09 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module.exports = {
env: {
node: true,
es2021: true,
},
extends: ['airbnb-base', 'prettier', 'plugin:openapi/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
ignorePatterns: ['dist/*', '**/*.test.ts'],
rules: {
semi: ['error', 'never'],
'prefer-destructuring': ['error', { object: false, array: false }],
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variableLike',
leadingUnderscore: 'allow',
trailingUnderscore: 'allow',
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
},
],
'import/no-relative-packages': 0,
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.ts', '.d.ts', '.tsx'],
},
},
},
overrides: [
{
files: ['*.ts'],
extends: ['airbnb-base', 'airbnb-typescript/base', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
rules: {
semi: ['error', 'never'],
'prefer-destructuring': ['error', { object: false, array: false }],
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variableLike',
leadingUnderscore: 'allow',
trailingUnderscore: 'allow',
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
},
],
'import/no-relative-packages': 0,
'global-require': 0,
'import/prefer-default-export': 0,
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false }],
'no-restricted-syntax': 0,
'no-plusplus': 0,
'no-await-in-loop': 0,
'@typescript-eslint/no-shadow': 0,
'import/extensions': [
'error',
'never',
{
json: 'always',
},
],
},
},
],
}