-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy path.eslintrc.js
36 lines (36 loc) · 1.02 KB
/
.eslintrc.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
36
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:@next/next/recommended',
'plugin:react/recommended',
],
plugins: ['@typescript-eslint', '@emotion'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2023,
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
'import/extensions': ['.js', '.js', '.jsx', '.ts', '.tsx'],
react: {
version: 'detect',
},
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/function-component-definition': [2, { namedComponents: 'arrow-function' }],
'prefer-arrow-callback': 'off',
'no-restricted-exports': 'warn',
'react/jsx-no-useless-fragment': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
};