-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
59 lines (57 loc) · 1.56 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import unusedImports from 'eslint-plugin-unused-imports'
import eslintConfigPrettier from 'eslint-config-prettier'
export default tseslint.config({
files: ['**/*.ts', '**/*.tsx'],
ignores: [
// '**/build/*.js',
'*.queries.ts',
'src/lib/db/schema/public/PublicSchema.ts',
],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
// eslintConfigPrettier,
],
languageOptions: {
ecmaVersion: 'latest',
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: import.meta.dirname,
},
// globals: {
// ...globals.recommended,
// Stripe: true,
// cy: true,
// Cypress: true,
// },
},
plugins: {
'unused-imports': unusedImports,
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'react/no-unescaped-entities': 'off',
'react/no-unknown-property': 'off',
'react/display-name': 'off',
// unusedImports plugin
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
},
})