-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply lint fixes. Ignore some files that can be addressed in a follow…
… up pr
- Loading branch information
Showing
21 changed files
with
189 additions
and
153 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// eslint.config.mjs | ||
|
||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import emberPlugin from 'eslint-plugin-ember'; | ||
import prettierPlugin from 'eslint-plugin-prettier'; | ||
import js from '@eslint/js'; // Import ESLint core configs | ||
import globals from 'globals'; // Import globals | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: import.meta.url, | ||
resolvePluginsRelativeTo: import.meta.url, | ||
recommendedConfig: js.configs.recommended, // Provide recommendedConfig | ||
}); | ||
|
||
export default [ | ||
{ | ||
files: ['**/*.js'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', // Ensure ES module parsing | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
plugins: { | ||
ember: emberPlugin, | ||
prettier: prettierPlugin, | ||
}, | ||
rules: {}, | ||
}, | ||
// Extend configurations using FlatCompat | ||
...compat.extends( | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:prettier/recommended', | ||
), | ||
{ | ||
ignores: [ | ||
'node_modules/', | ||
'dist/', | ||
'blueprints', | ||
'.prettierrc.cjs', | ||
'.template-lintrc.js', | ||
'config/ember-try.js', | ||
'ember-cli-build.js', | ||
'index.js', | ||
'node-test/', | ||
'config/environment.js', | ||
'tests/dummy/', | ||
'testem.js', | ||
], | ||
}, | ||
]; |
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
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.