Skip to content

Commit

Permalink
fix config usage
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Oct 29, 2024
1 parent 52ebc1e commit 85b91f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ import unicornPlugin from 'eslint-plugin-unicorn';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
importPlugin.flatConfigs.recommended,
unicornPlugin.configs['flat/recommended'],
prettierRecommendedConfig, // 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.
{
plugins: {
notice: noticePlugin,
'@typescript-eslint': tseslint.plugin,
jest: jestPlugin,
},
extends: [
// eslint.configs.recommended,
importPlugin.flatConfigs.recommended,
unicornPlugin.configs['flat/recommended'],
prettierRecommendedConfig, // 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.
],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
Expand Down Expand Up @@ -89,7 +87,9 @@ export default tseslint.config(
/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
{
files: ['**/*.ts', '**/*.cts', '**/*.mts'],
extends: [...tseslint.configs.recommended, ...tseslint.configs.stylistic, importPlugin.flatConfigs.typescript],
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
...importPlugin.flatConfigs.typescript,
settings: {
'import/resolver': {
typescript: {
Expand Down

0 comments on commit 85b91f3

Please sign in to comment.