-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
556 additions
and
503 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
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,119 @@ | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
|
||
import ts from 'typescript-eslint'; | ||
|
||
import ember from 'eslint-plugin-ember/recommended'; | ||
|
||
import prettier from 'eslint-plugin-prettier/recommended'; | ||
import qunit from 'eslint-plugin-qunit'; | ||
import n from 'eslint-plugin-n'; | ||
|
||
import babelParser from '@babel/eslint-parser'; | ||
|
||
const parserOptions = { | ||
esm: { | ||
js: { | ||
ecmaFeatures: { modules: true }, | ||
ecmaVersion: 'latest', | ||
requireConfigFile: false, | ||
babelOptions: { | ||
plugins: [ | ||
[ | ||
'@babel/plugin-proposal-decorators', | ||
{ decoratorsBeforeExport: true }, | ||
], | ||
], | ||
}, | ||
}, | ||
ts: { | ||
projectService: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}; | ||
|
||
export default ts.config( | ||
js.configs.recommended, | ||
ember.configs.base, | ||
ember.configs.gjs, | ||
ember.configs.gts, | ||
prettier, | ||
{ | ||
ignores: ['dist/', 'node_modules/', 'coverage/', '!**/.*'], | ||
}, | ||
{ | ||
linterOptions: { | ||
reportUnusedDisableDirectives: 'error', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.js'], | ||
languageOptions: { | ||
parser: babelParser, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.{js,gjs}'], | ||
languageOptions: { | ||
parserOptions: parserOptions.esm.js, | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.{ts,gts}'], | ||
languageOptions: { | ||
parser: ember.parser, | ||
parserOptions: parserOptions.esm.ts, | ||
}, | ||
extends: [...ts.configs.recommendedTypeChecked, ember.configs.gts], | ||
}, | ||
{ | ||
files: ['tests/**/*-test.{js,gjs,ts,gts}'], | ||
plugins: { | ||
qunit, | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
'**/*.cjs', | ||
'config/**/*.js', | ||
'testem.js', | ||
'testem*.js', | ||
'.ember-cli.js', | ||
'.lintstagedrc.js', | ||
'.prettierrc.js', | ||
'.stylelintrc.js', | ||
'.template-lintrc.js', | ||
'ember-cli-build.js', | ||
], | ||
plugins: { | ||
n, | ||
}, | ||
|
||
languageOptions: { | ||
sourceType: 'script', | ||
ecmaVersion: 'latest', | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.mjs'], | ||
plugins: { | ||
n, | ||
}, | ||
|
||
languageOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 'latest', | ||
parserOptions: parserOptions.esm.js, | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
); |
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.