forked from byersdz/bitmelo-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
52 lines (50 loc) · 1.46 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
module.exports = {
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"no-underscore-dangle": "off",
"space-in-parens": ["error", "always"],
"no-bitwise": "off",
"template-curly-spacing": ["error", "always"],
"arrow-body-style": "off",
"brace-style": ["error", "stroustrup"],
"max-len": ["error", { "code": 120, "ignoreComments": true, "ignoreTrailingComments": true }],
"operator-assignment": "off",
"no-lonely-if": "off",
"no-console": 'off',
"react/jsx-filename-extension": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"react/jsx-curly-spacing": ["error", {"when": "always"}],
"react/prefer-stateless-function": "off",
"arrow-parens": "off",
"class-methods-use-this": "off",
"import/prefer-default-export": "off",
"react/sort-comp": 'off',
"no-else-return": 'off',
"react/forbid-prop-types": "off",
"no-continue": "off",
"react/no-did-update-set-state": "off",
"react/jsx-curly-brace-presence": "off",
"prefer-destructuring": "off",
"import/order": "off",
"linebreak-style": 0,
"react/jsx-one-expression-per-line": 0
},
"globals": {
"bitmelo": "readonly",
"EDITOR_VERSION": "readonly",
"IS_DESKTOP": "readonly",
"IS_DEV": "readonly"
},
"settings": {
"import/resolver": {
"webpack": {
"config": "./config/webpack.config.common.js"
}
}
}
}