forked from Mergifyio/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.58 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
module.exports = {
globals: {
__PATH_PREFIX__: true,
},
parserOptions: {
"project": ["tsconfig.json"],
},
overrides: [
{
files: ['*.mdx'],
extends: 'plugin:mdx/recommended',
rules: {
'mdx/remark': 'error',
'no-unused-vars': 'off'
}
},
{
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
parser: '@typescript-eslint/parser',
extends: [
'airbnb',
'airbnb-typescript',
'react-app',
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/errors',
'plugin:import/warnings',
],
rules: {
"react/no-danger": "error",
"import/order": [
"error",
{
"newlines-between": "always-and-inside-groups",
"alphabetize": {
"order": "asc"
}
}
],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": "off",
"react/require-default-props": "off",
"react/forbid-prop-types": "off",
"@typescript-eslint/require-default-props": "off",
"@typescript-eslint/naming-convention": "off",
"import/prefer-default-export": "off",
"no-underscore-dangle": "off",
"no-plusplus": ["error", {allowForLoopAfterthoughts: true}]
},
}
]
};