-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
25 lines (25 loc) · 928 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
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: ['eslint:recommended', 'airbnb', 'plugin:prettier/recommended'],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh', 'prettier'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'import/extensions': 'warn',
'prettier/prettier': 'error',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/interactive-supports-focus': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'react/require-default-props': 'off',
'jsx-a11y/control-has-associated-label': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'react/jsx-props-no-spreading': 'off',
},
};