forked from JosephusPaye/Keen-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (53 loc) · 1.43 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
58
59
60
61
62
module.exports = {
// Extend from the Airbnb JS style guide
extends: [
'./node_modules/eslint-config-airbnb-base/legacy.js',
'./node_modules/eslint-config-airbnb-base/rules/es6.js'
],
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
},
// extends: 'airbnb-base',
// Specify environment for built-in functions
env: {
browser: true,
node: true
},
// Setup globals
globals: {
// For Jasmine
it: false,
expect: false,
describe: false,
beforeEach: false,
afterEach: false
},
plugins: [
'eslint-plugin-html' // lint <script> blocks in HTML files
],
// Override rules as needed
// See http://eslint.org/docs/rules/{rule-name} for docs
rules: {
'no-var': 'off',
'no-new': 'off',
'prefer-const': 'off',
'no-trailing-spaces': 'off',
indent: ['error', 4, {
SwitchCase: 1
}],
'space-before-function-paren': 'off',
'prefer-arrow-callback': 'off',
'prefer-template': 'off',
'no-multi-spaces': 'off',
'no-underscore-dangle': 'off',
'consistent-return': 'off',
'no-console': 'off',
'no-use-before-define': 'off',
'func-names': 'off',
'comma-dangle': 'off',
'vars-on-top': 'off',
'no-param-reassign': 'off',
strict: 'off'
}
};