22
33module . exports = {
44 root : true ,
5- parser : 'babel- eslint' ,
5+ parser : '@ babel/ eslint-parser ' ,
66 parserOptions : {
7- ecmaVersion : 2018 ,
7+ ecmaVersion : 'latest' ,
88 sourceType : 'module' ,
9- ecmaFeatures : {
10- legacyDecorators : true ,
9+ requireConfigFile : false ,
10+ babelOptions : {
11+ plugins : [
12+ [ '@babel/plugin-proposal-decorators' , { decoratorsBeforeExport : true } ] ,
13+ ] ,
1114 } ,
1215 } ,
1316 plugins : [ 'ember' ] ,
@@ -24,25 +27,20 @@ module.exports = {
2427 // node files
2528 {
2629 files : [
27- '.eslintrc.js' ,
28- '.prettierrc.js' ,
29- '.template-lintrc.js' ,
30- 'ember-cli-build.js' ,
31- 'index.js' ,
32- 'testem.js' ,
33- 'testem.multiple-test-page.js' ,
34- 'testem.no-test-page.js' ,
35- 'testem.simple-test-page.js' ,
36- 'blueprints/*/index.js' ,
37- 'config/**/*.js' ,
38- 'tests/dummy/config/**/*.js' ,
39- 'lib/**/*' ,
40- ] ,
41- excludedFiles : [
42- 'addon/**' ,
43- 'addon-test-support/**' ,
44- 'app/**' ,
45- 'tests/dummy/app/**' ,
30+ './.eslintrc.js' ,
31+ './.prettierrc.js' ,
32+ './.stylelintrc.js' ,
33+ './.template-lintrc.js' ,
34+ './ember-cli-build.js' ,
35+ './index.js' ,
36+ './testem.js' ,
37+ './testem.multiple-test-page.js' ,
38+ './testem.no-test-page.js' ,
39+ './testem.simple-test-page.js' ,
40+ './blueprints/*/index.js' ,
41+ './config/**/*.js' ,
42+ './tests/dummy/config/**/*.js' ,
43+ './lib/**/*' ,
4644 ] ,
4745 parserOptions : {
4846 sourceType : 'script' ,
@@ -51,8 +49,7 @@ module.exports = {
5149 browser : false ,
5250 node : true ,
5351 } ,
54- plugins : [ 'node' ] ,
55- extends : [ 'plugin:node/recommended' ] ,
52+ extends : [ 'plugin:n/recommended' ] ,
5653 } ,
5754 {
5855 files : [ 'node-tests/**/*' ] ,
@@ -62,7 +59,6 @@ module.exports = {
6259 } ,
6360 env : {
6461 node : true ,
65- mocha : true ,
6662 } ,
6763 rules : {
6864 'ember/no-test-support-import' : 'off' ,
0 commit comments