forked from chaskiq/chaskiq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (62 loc) · 1.49 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
module.exports = {
env: {
browser: true,
es6: true,
},
parser: "@typescript-eslint/parser",
//'import/parsers': {
// 'typescript-eslint-parser': ['.ts', '.tsx'],
//},
extends: [
'eslint:recommended',
'plugin:react/recommended',
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ["@typescript-eslint", 'react', 'unused-imports', "jsx-a11y"],
globals: {
I18n: 'readonly',
Paddle: 'readonly',
mapboxgl: 'readonly',
},
rules: {
'react/jsx-no-duplicate-props': 'off',
'react/jsx-no-duplicate': 'off',
'react/display-name': 'off',
'no-fallthrough': 'off',
'no-case-declarations': 'off',
'brace-style': [2, '1tbs', { allowSingleLine: true }],
'no-unused-vars': 'off', // or "@typescript-eslint/no-unused-vars": "off",
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'react/prop-types': 0,
},
/*"overrides": [
{
"files": ['./app/javascript/*.js'],
"excludedFiles": "./app/javascript/src/graphql/*.js",
"rules": {
"quotes": ["error", "single"]
}
}
]*/
};