-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
31 lines (31 loc) · 1011 Bytes
/
.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,
env: { browser: true, es2020: true },
extends: [
'airbnb',
'airbnb/hooks',
'plugin:import/errors',
'plugin:import/warnings',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'react/prop-types': 0,
'react/jsx-pascal-case': 'warn',
'react/function-component-definition': [2, { namedComponents: ['arrow-function'] }],
'react/react-in-jsx-scope': 'off',
'no-var': 'error',
'no-unused-vars': ['off'],
'no-console': ['off'],
'no-extra-semi': 'error',
'arrow-parens': ['warn', 'as-needed'],
'import/prefer-default-export': ['off'],
'no-debugger': 'off',
},
};