Skip to content

Commit 8d21137

Browse files
committed
fix(ci): remove eslint-config-airbnb-base incompatible with ESLint 9
1 parent 013e070 commit 8d21137

File tree

3 files changed

+136
-2084
lines changed

3 files changed

+136
-2084
lines changed

eslint.config.mjs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
import { FlatCompat } from '@eslint/eslintrc';
21
import js from '@eslint/js';
32
import tseslint from 'typescript-eslint';
43

5-
const compat = new FlatCompat({ baseDirectory: import.meta.dirname });
6-
74
export default tseslint.config(
85
js.configs.recommended,
96
...tseslint.configs.strict,
10-
...compat.extends('airbnb-base'),
117
{
128
files: ['**/*.ts'],
139
rules: {
1410
indent: ['error', 4, { SwitchCase: 1 }],
15-
'import/extensions': 'off',
16-
'import/no-unresolved': 'off',
1711
'no-use-before-define': 'off',
1812
'@typescript-eslint/no-use-before-define': 'error',
1913
'no-shadow': 'off',
2014
'@typescript-eslint/no-shadow': 'error',
21-
'import/prefer-default-export': 'off',
2215
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
2316
'no-unused-vars': 'off',
2417
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],

0 commit comments

Comments
 (0)