-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
66 lines (66 loc) · 1.93 KB
/
.eslintrc
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
{
"plugins": ["prettier"],
"extends": ["airbnb", "plugin:react/recommended", "prettier/react", "plugin:prettier/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"indent": "off",
"no-tabs": "off",
"no-console": "off",
"comma-dangle": "off",
"import/prefer-default-export": "off",
"object-curly-spacing": "off",
"no-trailing-spaces": "off",
"spaced-comment": "off",
"class-methods-use-this": "off",
"linebreak-style": "off",
"global-require": "off",
"semi": "warn",
"arrow-body-style": "off",
"no-plusplus": "off",
"no-multi-assign": "off",
"space-before-function-paren": "off",
"react/sort-comp": "off",
"react/no-danger": "off",
"react/prop-types": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/destructuring-assignment": "off",
"react/button-has-type": "off",
"react/no-multi-comp": "off",
"react/prefer-stateless-function": "off",
"react/no-access-state-in-setstate": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": [ "error", {
"required": {
"some": [ "nesting", "id" ]
}
}],
"jsx-a11y/label-has-for": [ "error", {
"required": {
"some": [ "nesting", "id" ]
}
}],
"max-len": ["error", {
"code": 170,
"ignoreTrailingComments": true,
"ignoreStrings": true ,
"ignoreComments": true,
}],
"prettier/prettier": ["error", {useTabs: true, trailingComma "es5"}],
}
}