2
2
3
3
module . exports = {
4
4
globals : {
5
- server : true
5
+ server : true ,
6
6
} ,
7
7
root : true ,
8
8
parser : 'babel-eslint' ,
9
9
parserOptions : {
10
10
ecmaVersion : 2018 ,
11
11
sourceType : 'module' ,
12
12
ecmaFeatures : {
13
- legacyDecorators : true
14
- }
13
+ legacyDecorators : true ,
14
+ } ,
15
15
} ,
16
- plugins : [
17
- 'ember'
18
- ] ,
16
+ plugins : [ 'ember' ] ,
19
17
extends : [
20
18
'eslint:recommended' ,
21
- 'plugin:ember/recommended'
19
+ 'plugin:ember/recommended' ,
20
+ 'plugin:prettier/recommended' ,
22
21
] ,
23
22
env : {
24
- browser : true
23
+ browser : true ,
25
24
} ,
26
25
rules : {
27
26
'no-unused-vars' : [ 'error' , { args : 'none' } ] ,
28
27
'no-console' : [ 'error' , { allow : [ 'warn' , 'error' ] } ] ,
29
28
'ember/no-incorrect-calls-with-inline-anonymous-functions' : 'off' ,
30
29
'ember/require-return-from-computed' : 'off' ,
31
30
'ember/no-jquery' : 'error' ,
32
- // ember-keyboard uses events
33
- 'ember/no-on-calls-in-components' : 'off' ,
34
31
35
32
// TODO: enable these rules
33
+ 'ember/classic-decorator-no-classic-methods' : 'off' ,
34
+ 'ember/no-actions-hash' : 'off' ,
35
+ 'ember/no-classic-classes' : 'off' ,
36
+ 'ember/no-classic-components' : 'off' ,
37
+ 'ember/no-component-lifecycle-hooks' : 'off' ,
38
+ 'ember/no-computed-properties-in-native-classes' : 'off' ,
36
39
'ember/no-get' : 'off' ,
37
- 'ember/no-private-routing-service' : 'off'
40
+ 'ember/no-private-routing-service' : 'off' ,
41
+ 'ember/no-string-prototype-extensions' : 'off' ,
42
+ 'ember/require-tagless-components' : 'off' ,
38
43
} ,
39
44
overrides : [
40
45
// node files
@@ -51,23 +56,23 @@ module.exports = {
51
56
'config/**/*.js' ,
52
57
'lib/**/*.js' ,
53
58
'tests/dummy/config/**/*.js' ,
54
- 'tests-node/**/*.js'
59
+ 'tests-node/**/*.js' ,
55
60
] ,
56
61
excludedFiles : [
57
62
'addon/**' ,
58
63
'addon-test-support/**' ,
59
64
'app/**' ,
60
- 'tests/dummy/app/**'
65
+ 'tests/dummy/app/**' ,
61
66
] ,
62
67
parserOptions : {
63
- sourceType : 'script'
68
+ sourceType : 'script' ,
64
69
} ,
65
70
env : {
66
71
browser : false ,
67
- node : true
72
+ node : true ,
68
73
} ,
69
74
plugins : [ 'node' ] ,
70
- extends : [ 'plugin:node/recommended' ]
75
+ extends : [ 'plugin:node/recommended' ] ,
71
76
} ,
72
77
73
78
// node test files
@@ -76,12 +81,12 @@ module.exports = {
76
81
describe : true ,
77
82
it : true ,
78
83
beforeEach : true ,
79
- afterEach : true
84
+ afterEach : true ,
80
85
} ,
81
86
files : [ 'tests-node/**/*.js' ] ,
82
87
rules : {
83
- 'node/no-unpublished-require' : 'off'
84
- }
85
- }
86
- ]
88
+ 'node/no-unpublished-require' : 'off' ,
89
+ } ,
90
+ } ,
91
+ ] ,
87
92
} ;
0 commit comments