-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.mjs
41 lines (39 loc) · 985 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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'],
},
]);