-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
31 lines (31 loc) · 1.01 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: { browser: true, es2020: true },
plugins: ['@typescript-eslint', 'react-refresh'],
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'plugin:prettier/recommended',
],
parserOptions: {
project: ['./tsconfig.json'],
},
ignorePatterns: ['dist', '.eslintrc.cjs', '*.config.*'],
rules: {
'@typescript-eslint/no-unused-vars': 'warn',
'prettier/prettier': 'off',
'no-console': 'off',
'no-restricted-syntax': 'off',
'react/react-in-jsx-scope': 'off',
'react/no-unstable-nested-components': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-no-useless-fragment': 'off',
'react/require-default-props': 'off',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'react/function-component-definition': [2, { namedComponents: 'arrow-function' }],
'import/prefer-default-export': 'off',
},
};