forked from adopted-ember-addons/ember-electron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (46 loc) · 1.11 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:ember-suave/recommended',
],
env: {
es6: true,
qunit: true,
node: true,
},
globals: {
// 'expectAssertion': true,
// 'expectDeprecation': true,
// 'expectNoDeprecation': true,
// 'expectWarning': true,
// 'expectNoWarning': true,
// 'ignoreAssertion': true,
// 'ignoreDeprecation': true,
// Electron
'requireNode': true,
'processNode': true,
// A safe subset of "browser:true":
// 'window': true,
// 'document': true,
// 'setTimeout': true,
// 'clearTimeout': true,
// 'setInterval': true,
// 'clearInterval': true,
// 'Symbol': true,
// 'WeakMap': true,
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
'ember-suave/no-const-outside-module-scope': 'off',
'ember-suave/no-direct-property-access': 'off',
'ember-suave/require-access-in-comments': 'off',
'newline-before-return': 'error',
'no-console': 'off',
'one-var': 'off',
},
};