-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
75 lines (75 loc) · 2.02 KB
/
.eslintrc.js
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
module.exports = {
'env': {
'browser': true,
'es2021': true,
'jest': true
},
'extends': [
'airbnb',
'airbnb-typescript',
'plugin:react/recommended',
'plugin:n/recommended',
'plugin:promise/recommended',
'plugin:i18next/recommended'
],
'overrides': [
{
'env': {
'node': true
},
'files': [
'.eslintrc.{js,cjs}'
],
'parserOptions': {
'sourceType': 'script'
}
}
],
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module',
'project': './tsconfig.json'
},
'plugins': [
'react',
'promise',
'i18next'
],
'rules': {
'react/jsx-indent': [2, 4],
'@typescript-eslint/indent': [2, 4],
'react/jsx-indent-props': [2, 4],
'react/react-in-jsx-scope': 'off',
'import/prefer-default-export': 'off',
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': [1, {
'html': 'ignore',
'exceptions': ['Link']
}],
'react/function-component-definition': 'off',
'n/no-missing-import': 'off',
'n/exports-style': ['error', 'module.exports'],
'import/no-extraneous-dependencies': [2, {
"devDependencies": true
}],
'n/no-unpublished-import': 'off',
'no-underscore-dangle': 'off',
'@typescript-eslint/naming-convention': [2, {
'selector': 'variable',
'format': ['camelCase', 'PascalCase', 'UPPER_CASE'],
'leadingUnderscore': 'allowDouble',
'trailingUnderscore': 'allowDouble'
}],
'max-len': [2, {
'code': 100,
'ignoreComments': true
}],
'linebreak-style': 'off',
'i18next/no-literal-string': [2, {
'markupOnly': true
}]
},
'globals': {
'__IS_DEV_': true
}
}