-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
35 lines (34 loc) · 1000 Bytes
/
eslint.config.js
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
import eslint from '@eslint/js';
import stylisticTs from '@stylistic/eslint-plugin-ts';
import eslintConfigPrettier from 'eslint-config-prettier';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import tseslint from 'typescript-eslint';
export default tseslint.config({
ignores: [
'build/**',
'dist/**',
'node_modules/**',
'.react-router/**',
'public/mockServiceWorker.js',
],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
],
plugins: {
'simple-import-sort': simpleImportSort,
'@stylistic/ts': stylisticTs,
},
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
'@stylistic/ts/semi': ['error', 'always'],
'@stylistic/ts/quotes': ['error', 'single'],
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
});