1+ 'use strict' ;
2+
13module . exports = {
24 root : true ,
3- parser : 'babel- eslint' ,
5+ parser : '@ babel/ eslint-parser ' ,
46 parserOptions : {
5- ecmaVersion : 2018 ,
6- sourceType : 'module'
7+ ecmaVersion : 'latest' ,
8+ sourceType : 'module' ,
9+ requireConfigFile : false ,
10+ babelOptions : {
11+ plugins : [
12+ [ '@babel/plugin-proposal-decorators' , { decoratorsBeforeExport : true } ] ,
13+ ] ,
14+ } ,
715 } ,
816 plugins : [ 'ember' ] ,
9- extends : [ 'eslint:recommended' , 'plugin:ember/recommended' ] ,
17+ extends : [
18+ 'eslint:recommended' ,
19+ 'plugin:ember/recommended' ,
20+ 'plugin:prettier/recommended' ,
21+ ] ,
1022 env : {
11- browser : true
12- } ,
13- globals : {
14- fetch : 'off' ,
15- Headers : 'off' ,
16- Request : 'off' ,
17- Response : 'off' ,
18- AbortController : 'off'
23+ browser : true ,
1924 } ,
2025 rules : {
2126 'ember/no-new-mixins' : 'off' ,
@@ -36,39 +41,34 @@ module.exports = {
3641 // node files
3742 {
3843 files : [
39- '.eslintrc.js' ,
40- '.template-lintrc.js' ,
41- 'ember-cli-build.js' ,
42- 'index.js' ,
43- 'testem.js' ,
44- 'blueprints/*/index.js' ,
45- 'config/**/*.js' ,
46- 'test/**/*.js' ,
47- 'tests/dummy/config/**/*.js'
44+ './.eslintrc.js' ,
45+ './.prettierrc.js' ,
46+ './.stylelintrc.js' ,
47+ './.template-lintrc.js' ,
48+ './ember-cli-build.js' ,
49+ './index.js' ,
50+ './testem.js' ,
51+ './blueprints/*/index.js' ,
52+ './config/**/*.js' ,
53+ './tests/dummy/config/**/*.js' ,
4854 ] ,
49- excludedFiles : [ 'app/**' , 'addon-test-support/**' , 'addon/**' , 'tests/dummy/app/**' ] ,
5055 parserOptions : {
51- sourceType : 'script'
56+ sourceType : 'script' ,
5257 } ,
5358 env : {
5459 browser : false ,
55- node : true
56- } ,
57- plugins : [ 'node' ] ,
58- rules : Object . assign ( { } , require ( 'eslint-plugin-node' ) . configs . recommended . rules , {
59- // add your custom rules and overrides for node files here
60- } )
61- } ,
62- // node tests
63- {
64- files : [ 'test/**/*.js' ] ,
65- env : {
66- mocha : true
60+ node : true ,
6761 } ,
62+ extends : [ 'plugin:n/recommended' ] ,
6863 rules : {
6964 'node/no-unpublished-require' : 'off' ,
7065 'node/no-extraneous-require' : 'off'
7166 }
72- }
73- ]
67+ } ,
68+ {
69+ // test files
70+ files : [ 'tests/**/*-test.{js,ts}' ] ,
71+ extends : [ 'plugin:qunit/recommended' ] ,
72+ } ,
73+ ] ,
7474} ;
0 commit comments