forked from goncy/react-swipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (61 loc) · 1.14 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
module.exports = {
"root": true,
"extends": [
"prettier",
"prettier/react",
"react-app",
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"react",
"prettier",
"flowtype",
"cypress"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true,
"jest": true,
"mocha": true,
"cypress/globals": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"rules": {
"no-debugger": "off",
"no-console": "off",
"react/prop-types": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"no-unused-vars": [
"error",
{
"args": "after-used",
"ignoreRestSiblings": false
}
],
"prettier/prettier": [
"error",
{
"semi": true,
"bracketSpacing": false,
"trailingComma": "es5",
},
],
}
}