Skip to content

Commit

Permalink
wip: fix conf
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Apr 22, 2024
1 parent 8253523 commit 4a272a5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ import tseslint from 'typescript-eslint';

export default [
{
...eslintPluginImport.configs.recommended, // import/recommended is not working for now with ESLint v9
...unicornPlugin.configs.recommended,
// ...eslintPluginImport.configs.recommended, // is not working for now with ESLint v9
// ...unicornPlugin.configs.recommended, // is not working for now with ESLint v9
...eslintPluginPrettierRecommended, // Enables eslint-plugin-prettier, eslint-config-prettier and prettier/prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration.

root: true,
plugins: {
notice: noticePlugin,
unicorn: unicornPlugin,
Expand Down Expand Up @@ -91,11 +90,11 @@ export default [

// typescript
{ ...eslint.configs.recommended, files: ['**/*.ts', '**/*.tsx'] },
tseslint.configs.recommended.map(conf => ({ ...conf, files: ['**/*.ts', '**/*.tsx'] })),
...tseslint.configs.recommended.map(conf => ({ ...conf, files: ['**/*.ts', '**/*.tsx'] })),
/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
{
...tseslint.configs.stylistic,
...eslintPluginImport.configs.typescript, // import/typescript is not working for now with ESLint v9
// ...eslintPluginImport.configs.typescript, // is not working for now with ESLint v9
...eslintPluginPrettierRecommended, // Enables eslint-plugin-prettier, eslint-config-prettier and prettier/prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration.

files: ['*.ts'],
Expand Down

0 comments on commit 4a272a5

Please sign in to comment.