File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,4 +235,20 @@ module.exports = [
235235 'unicorn/filename-case' : 'off' ,
236236 } ,
237237 } ,
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+ } ,
238254] ;
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 2323 "license" : " MIT" ,
2424 "exports" : {
2525 "." : " ./lib/index.js" ,
26+ "./config" : {
27+ "import" : " ./lib/config.mjs"
28+ },
2629 "./configs/*" : " ./lib/config/*.js"
2730 },
2831 "main" : " ./lib/index.js" ,
You can’t perform that action at this time.
0 commit comments