-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.mjs
More file actions
43 lines (42 loc) · 990 Bytes
/
eslint.config.mjs
File metadata and controls
43 lines (42 loc) · 990 Bytes
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
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import parser from '@typescript-eslint/parser';
export default [
{
ignores: [
'.next/**',
'node_modules/**',
'out/**',
'build/**',
'db/**',
'media/**'
]
},
{
files: ['**/*.{js,jsx,ts,tsx}'],
languageOptions: {
parser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: { jsx: true }
}
},
plugins: {
react,
'react-hooks': reactHooks,
'@typescript-eslint': typescriptEslint
},
settings: {
react: { version: 'detect' }
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'warn',
'no-unused-vars': 'off',
'prefer-const': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }]
}
}
];