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,16 +27,17 @@ module.exports = {
2427 // node files
2528 {
2629 files : [
27- '.eslintrc.js' ,
28- '.prettierrc.js' ,
29- '.template-lintrc.js' ,
30- 'ember-cli-build.js' ,
30+ './.eslintrc.js' ,
31+ './.prettierrc.js' ,
32+ './.stylelintrc.js' ,
33+ './.template-lintrc.js' ,
34+ './ember-cli-build.js' ,
3135 'generate-deprecations-tree.js' ,
32- 'index.js' ,
33- 'testem.js' ,
34- 'blueprints/*/index.js' ,
35- 'config/**/*.js' ,
36- 'tests/dummy/config/**/*.js' ,
36+ './ index.js' ,
37+ './ testem.js' ,
38+ './ blueprints/*/index.js' ,
39+ './ config/**/*.js' ,
40+ './ tests/dummy/config/**/*.js' ,
3741 ] ,
3842 excludedFiles : [
3943 'addon/**' ,
@@ -48,14 +52,14 @@ module.exports = {
4852 browser : false ,
4953 node : true ,
5054 } ,
51- plugins : [ 'node ' ] ,
52- extends : [ 'plugin:node /recommended' ] ,
55+ plugins : [ 'n ' ] ,
56+ extends : [ 'plugin:n /recommended' ] ,
5357 rules : {
5458 'ember/new-module-imports' : 0 ,
5559 } ,
5660 } ,
5761 {
58- // Test files:
62+ // test files
5963 files : [ 'tests/**/*-test.{js,ts}' ] ,
6064 extends : [ 'plugin:qunit/recommended' ] ,
6165 } ,
0 commit comments