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,21 +27,16 @@ 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- 'blueprints/*/index.js' ,
34- 'config/**/*.js' ,
35- 'tests/dummy/config/**/*.js' ,
36- ] ,
37- excludedFiles : [
38- 'addon/**' ,
39- 'addon-test-support/**' ,
40- 'app/**' ,
41- '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+ './blueprints/*/index.js' ,
38+ './config/**/*.js' ,
39+ './tests/dummy/config/**/*.js' ,
4240 ] ,
4341 parserOptions : {
4442 sourceType : 'script' ,
@@ -47,8 +45,12 @@ module.exports = {
4745 browser : false ,
4846 node : true ,
4947 } ,
50- plugins : [ 'node' ] ,
51- extends : [ 'plugin:node/recommended' ] ,
48+ extends : [ 'plugin:n/recommended' ] ,
49+ } ,
50+ {
51+ // test files
52+ files : [ 'tests/**/*-test.{js,ts}' ] ,
53+ extends : [ 'plugin:qunit/recommended' ] ,
5254 } ,
5355 ] ,
5456} ;
0 commit comments