File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -235,4 +235,20 @@ module.exports = [
235
235
'unicorn/filename-case' : 'off' ,
236
236
} ,
237
237
} ,
238
+ {
239
+ files : [ '**/*.mjs' ] ,
240
+ languageOptions : {
241
+ parser : babelEslintParser ,
242
+ parserOptions : {
243
+ ecmaFeatures : { modules : true } ,
244
+ ecmaVersion : 2022 ,
245
+ babelOptions : {
246
+ configFile : require . resolve ( './.babelrc' ) ,
247
+ } ,
248
+ } ,
249
+ } ,
250
+ rules : {
251
+ 'import/extensions' : [ 'error' , 'ignorePackages' ] ,
252
+ } ,
253
+ } ,
238
254
] ;
Original file line number Diff line number Diff line change
1
+ import plugin from './index.js' ;
2
+ import gjsRules from './recommended-rules-gjs.js' ;
3
+ import gtsRules from './recommended-rules-gts.js' ;
4
+ import parser from 'ember-eslint-parser' ;
5
+
6
+ export const base = {
7
+ plugins : { ember : plugin } ,
8
+ } ;
9
+
10
+ export const gjs = {
11
+ plugins : { ember : plugin } ,
12
+ files : [ '**/*.gjs' ] ,
13
+ languageOptions : {
14
+ parser,
15
+ } ,
16
+ processor : 'ember/noop' ,
17
+ rules : gjsRules ,
18
+ } ;
19
+
20
+ export const gts = {
21
+ plugins : { ember : plugin } ,
22
+ files : [ '**/*.gts' ] ,
23
+ languageOptions : {
24
+ parser,
25
+ } ,
26
+ processor : 'ember/noop' ,
27
+ rules : gtsRules ,
28
+ } ;
Original file line number Diff line number Diff line change 23
23
"license" : " MIT" ,
24
24
"exports" : {
25
25
"." : " ./lib/index.js" ,
26
+ "./config" : {
27
+ "import" : " ./lib/config.mjs"
28
+ },
26
29
"./configs/*" : " ./lib/config/*.js"
27
30
},
28
31
"main" : " ./lib/index.js" ,
You can’t perform that action at this time.
0 commit comments