-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from DazzlingFugu/upgrade-to-eslint-v9
Upgrade ESLint from v8 to v9
- Loading branch information
Showing
8 changed files
with
354 additions
and
416 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,8 +7,6 @@ | |
/.ember-cli | ||
/.env* | ||
/.eslintcache | ||
/.eslintignore | ||
/.eslintrc.js | ||
/.git/ | ||
/.github/ | ||
/.gitignore | ||
|
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,109 @@ | ||
import ember from 'eslint-plugin-ember'; | ||
import globals from 'globals'; | ||
import babelParser from '@babel/eslint-parser'; | ||
import js from '@eslint/js'; | ||
|
||
import pluginEmberRecommended from 'eslint-plugin-ember/configs/recommended'; | ||
import pluginNode from 'eslint-plugin-n'; | ||
import pluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; | ||
import pluginQunitRecommended from 'eslint-plugin-qunit/configs/recommended'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
...pluginEmberRecommended, | ||
pluginPrettierRecommended, | ||
|
||
{ | ||
ignores: [ | ||
// Unconventional js | ||
'blueprints/*/files/', | ||
|
||
// Compiled output | ||
'declarations/', | ||
'dist/', | ||
|
||
// Misc | ||
'coverage/', | ||
'!**/.*', | ||
'**/.*/', | ||
|
||
// ember-try | ||
'.node_modules.ember-try/', | ||
], | ||
}, | ||
{ | ||
plugins: { | ||
ember, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
|
||
parser: babelParser, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
requireConfigFile: false, | ||
|
||
babelOptions: { | ||
plugins: [ | ||
[ | ||
'@babel/plugin-proposal-decorators', | ||
{ | ||
decoratorsBeforeExport: true, | ||
}, | ||
], | ||
], | ||
}, | ||
}, | ||
}, | ||
|
||
rules: {}, | ||
}, | ||
{ | ||
...pluginNode.configs['flat/recommended-script'], | ||
files: [ | ||
'.prettierrc.js', | ||
'.stylelintrc.js', | ||
'.template-lintrc.js', | ||
'ember-cli-build.js', | ||
'index.js', | ||
'testem.js', | ||
'blueprints/*/index.js', | ||
'config/**/*.js', | ||
'tests/dummy/config/**/*.js', | ||
], | ||
}, | ||
{ | ||
files: [ | ||
'.prettierrc.js', | ||
'.stylelintrc.js', | ||
'.template-lintrc.js', | ||
'ember-cli-build.js', | ||
'index.js', | ||
'testem.js', | ||
'blueprints/*/index.js', | ||
'config/**/*.js', | ||
'tests/dummy/config/**/*.js', | ||
], | ||
|
||
languageOptions: { | ||
globals: { | ||
...Object.fromEntries( | ||
Object.entries(globals.browser).map(([key]) => [key, 'off']), | ||
), | ||
...globals.node, | ||
}, | ||
|
||
ecmaVersion: 5, | ||
sourceType: 'script', | ||
}, | ||
}, | ||
{ | ||
...pluginQunitRecommended, | ||
files: ['tests/**/*-test.{js,ts}'], | ||
}, | ||
]; |
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
Oops, something went wrong.