Skip to content

Commit

Permalink
feat: upgrade ESLint to version 9
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf authored Oct 23, 2024
1 parent d0e66c7 commit 89b5668
Show file tree
Hide file tree
Showing 4 changed files with 425 additions and 359 deletions.
30 changes: 0 additions & 30 deletions .eslintrc.json

This file was deleted.

41 changes: 41 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// eslint.config.mjs

import { defineConfig } from 'eslint-define-config';
import ts from '@typescript-eslint/parser';
import tsEslint from '@typescript-eslint/eslint-plugin';
import stylisticEslint from '@stylistic/eslint-plugin';

export default defineConfig([
{
ignores: ['**/*.test.js'],
},
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: ts,
parserOptions: {
ecmaVersion: 2024,
project: './tsconfig.json',
createDefaultProgram: true,
ecmaFeatures: {
impliedStrict: true,
},
},
},
plugins: {
'@typescript-eslint': tsEslint,
'@stylistic': stylisticEslint,
},
rules: {
'@typescript-eslint/naming-convention': 'warn',
'@typescript-eslint/no-unused-expressions': 'off',
'@stylistic/semi': 'warn',
'curly': 'warn',
'eqeqeq': ['warn', 'always'],
'no-redeclare': 'warn',
'no-throw-literal': 'warn',
'no-unused-expressions': 'off',
},
ignores: ['src/ui-test/resources/problems.ts'],
},
]);
Loading

0 comments on commit 89b5668

Please sign in to comment.