-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support ESLint flat config (#2020) * Allow ember-data type registry imports in `use-ember-data-rfc-395-imports` rule (#2027) * Allow ember-data type registry imports * fix lint --------- Co-authored-by: Bryan Mishkin <[email protected]> * fix lint * Release 11.12.0 * fix merge mistakes --------- Co-authored-by: Peter Wagenet <[email protected]>
- Loading branch information
Showing
16 changed files
with
112 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
root: true, | ||
|
||
parserOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
}, | ||
|
||
env: { | ||
browser: true, | ||
es2022: true, | ||
}, | ||
|
||
plugins: ['ember'], | ||
|
||
overrides: [ | ||
/** | ||
* We don't want to *always* have the preprocessor active, | ||
* it's only relevant on gjs and gts files to detect if eslint config is correctly setup for this files. | ||
*/ | ||
{ | ||
files: ['**/*.{gts,gjs}'], | ||
parser: 'eslint-plugin-ember/gjs-gts-parser', | ||
processor: 'ember/<noop>', | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const base = require('./base'); | ||
const gjsRules = require('../recommended-rules-gjs'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: gjsRules, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const base = require('./base'); | ||
const gtsRules = require('../recommended-rules-gts'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: gtsRules, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const base = require('./base'); | ||
const rules = require('../recommended-rules'); | ||
|
||
module.exports = { | ||
...base, | ||
rules, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
module.exports = { | ||
root: true, | ||
const plugin = require('../index'); | ||
|
||
parserOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
module.exports = [ | ||
{ | ||
plugins: { ember: plugin }, | ||
}, | ||
|
||
env: { | ||
browser: true, | ||
es2022: true, | ||
/** | ||
* We don't want to *always* have the preprocessor active, | ||
* it's only relevant on gjs and gts files to detect if eslint config is correctly setup for this files. | ||
*/ | ||
{ | ||
files: ['**/*.{gts,gjs}'], | ||
parser: 'eslint-plugin-ember/gjs-gts-parser', | ||
processor: 'ember/<noop>', | ||
}, | ||
|
||
plugins: ['ember'], | ||
|
||
overrides: [ | ||
/** | ||
* We don't want to *always* have the preprocessor active, | ||
* it's only relevant on gjs and gts files to detect if eslint config is correctly setup for this files. | ||
*/ | ||
{ | ||
files: ['**/*.{gts,gjs}'], | ||
parser: 'eslint-plugin-ember/gjs-gts-parser', | ||
processor: 'ember/<noop>', | ||
}, | ||
], | ||
}; | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
const base = require('./base'); | ||
const gjsRules = require('../recommended-rules-gjs'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: gjsRules, | ||
}; | ||
module.exports = [...base, { rules: gjsRules }]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
const base = require('./base'); | ||
const gtsRules = require('../recommended-rules-gts'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: gtsRules, | ||
}; | ||
module.exports = [...base, { rules: gtsRules }]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
const base = require('./base'); | ||
const rules = require('../recommended-rules'); | ||
|
||
module.exports = { | ||
...base, | ||
rules, | ||
}; | ||
module.exports = [...base, { rules }]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters