forked from Kitware/vtk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
48 lines (43 loc) · 1.32 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
var prettierConf = require('./prettier.config.js');
module.exports = {
extends: ['airbnb', 'prettier'],
rules: {
'prettier/prettier': ['error', prettierConf],
// But we want the following
'no-multi-spaces': ["error", { exceptions: { "ImportDeclaration": true } }],
'no-param-reassign': ["error", { props: false }],
'no-unused-vars': ["error", { args: 'none' }],
'prefer-destructuring': ["error", { VariableDeclarator: { array: false, object: true }, AssignmentExpression: { array: false, object: false } }, { enforceForRenamedProperties: false }],
'import/no-extraneous-dependencies': 0, // Needed for tests
// 'no-mixed-operators': 'error',
// Not for us
'jsx-a11y/label-has-for': 0,
'no-console': 0,
'no-plusplus': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,
// Introduced with new eslint
// and no time to fix them...
// 'no-nested-ternary': 0,
// 'no-restricted-properties': 0,
// 'no-multi-spaces': 0,
// 'prefer-promise-reject-errors': 0,
// 'spaced-comment': 0,
// 'no-var': 0,
// 'import/extensions': 0,
},
plugins: [
'prettier'
],
globals: {
__BASE_PATH__: false,
VRFrameData: true,
},
'settings': {
'import/resolver': 'webpack'
},
env: {
es6: true,
browser: true,
},
};