forked from nonpartisan09/class_scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
53 lines (48 loc) · 1.19 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"__webpack_public_path__": true,
"describe": false,
"xdescribe": false,
"context": false,
"xcontext": false,
"it": false,
"before": false,
"beforeEach": false,
"after": false,
"afterEach": false
},
"env": {
// I write for browser
"browser": true,
// in CommonJS
"node": true
},
"plugins": [
"react"
],
// To give you an idea how to override rule options:
"rules": {
"quotes": [2, "single"],
"eol-last": [0],
"no-mixed-requires": [0],
"no-underscore-dangle": [0],
"no-console": [0],
"semi": ["error", "always"],
"react/prop-types": 1,
"react/jsx-tag-spacing": 1,
"react/sort-comp": 0,
"react/jsx-filename-extension": 0,
"react/jsx-closing-bracket-location": 0,
"react/jsx-curly-spacing": [2, "always"],
"react/forbid-prop-types": 0,
"import/no-extraneous-dependencies": ["error", { "optionalDependencies": true, "peerDependencies": true }],
"react/prefer-stateless-function": 0
},
"extends": [ "airbnb", "eslint:recommended", "plugin:react/recommended"]
}