forked from Kitware/vtk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
57 lines (53 loc) · 1.48 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
module.exports = {
extends: ['airbnb'], // , 'prettier'
rules: {
'max-len': ["warn", 160, 4, {"ignoreUrls": true}],
'no-multi-spaces': ["error", { exceptions: { "ImportDeclaration": true } }],
'no-param-reassign': ["error", { props: false }],
'no-unused-vars': ["error", { args: 'none' }],
'react/jsx-filename-extension': ["error", { "extensions": [".js"] }],
'no-mixed-operators': ["error", {"allowSamePrecedence": true}],
// Should fix that at some point but too much work...
'react/no-is-mounted': "warn",
'no-var': 0,
'one-var': 0,
'react/prefer-es6-class': 0,
'no-nested-ternary': 0,
// Not for us ;-)
'jsx-a11y/label-has-for': 0,
'no-console': 0,
'no-plusplus': 0,
'linebreak-style': 0,
// Not for vtk.js
// 'import/no-extraneous-dependencies': ["error", { "devDependencies": true }],
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
'import/extensions': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,
// May want to remove at some point
'no-restricted-properties': 0,
},
// plugins: [
// 'prettier'
// ],
globals: {
__BASE_PATH__: false,
VRFrameData: true,
},
'settings': {
'import/resolver': 'webpack'
},
env: {
browser: true,
},
// rules: {
// 'prettier/prettier': [
// 'error', {
// printWidth: 100,
// singleQuote: true,
// trailingComma: "es5"
// }
// ],
// }
};