-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
36 lines (36 loc) · 853 Bytes
/
.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 = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'airbnb',
'airbnb-typescript',
'plugin:react-hooks/recommended',
],
parserOptions: {
project: `${__dirname}/tsconfig.json`,
},
plugins: ['import', 'jsx-a11y', 'react', 'react-hooks'],
ignorePatterns: [
'dist/*',
'src/types/__generated_schemas__/index.ts',
],
rules: {
'react/no-unescaped-entities': 0,
'no-console': 1,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.tsx'] }],
'no-underscore-dangle': 'off',
'react/jsx-pascal-case': [0, { allowAllCaps: true }],
'import/extensions': [
'off',
{
ignorePackages: true,
},
],
'react/require-default-props': 0,
'react/function-component-definition': 'off',
},
};