forked from botfront/rasa-webchat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.27 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
module.exports = {
"env": {
"es6": true,
"node": true,
"browser": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"flowtype"
],
"extends": [
"eslint:recommended",
"airbnb",
"plugin:react/recommended",
],
"globals": {
"__DEV__": true,
},
"rules": {
"comma-dangle": ["error", "never"],
"no-invalid-this": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
"no-confusing-arrow": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"react/prop-types": [2, { ignore: ["style", "children", "dispatch"] } ],
"react/prefer-stateless-function": "off",
"react/no-array-index-key": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": "error",
"import/extensions": ["error", { js: "never" }],
"import/named": "error",
"import/default": "error",
"import/namespace": "error",
"import/no-absolute-path": "error"
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
};