Skip to content

Commit

Permalink
chore: cleanup eslint configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed Aug 2, 2024
1 parent ab55034 commit 2af223e
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,25 @@ export default defineFlatConfig([
},
},
},
...plugins['typescript-eslint'].config({
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'],
extends: [
...plugins['typescript-eslint'].configs.strictTypeChecked,
...plugins['typescript-eslint'].configs.stylisticTypeChecked,
],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
...plugins['typescript-eslint'].config(
{
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'],
extends: [
...plugins['typescript-eslint'].configs.strictTypeChecked,
...plugins['typescript-eslint'].configs.stylisticTypeChecked,
],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
}),
{
files: ['**/*.js', '**/*.mjs', '**/*.cjs'],
...plugins['typescript-eslint'].configs.disableTypeChecked,
},
{
files: ['**/*.js', '**/*.mjs', '**/*.cjs'],
...plugins['typescript-eslint'].configs.disableTypeChecked,
}
),
{
plugins: {
'simple-import-sort': simpleImportSort,
Expand Down

0 comments on commit 2af223e

Please sign in to comment.