-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.07 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
37
38
module.exports = {
root: true,
env: {
es2022: true,
browser: true,
node: true,
jest: true,
},
extends: [
'eslint:recommended', // https://eslint.org/docs/rules/
'plugin:import/recommended', // https://github.com/import-js/eslint-plugin-import
'plugin:jsx-a11y/recommended', // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y
'plugin:prettier/recommended', // https://github.com/prettier/eslint-plugin-prettier
'plugin:react/recommended', // https://github.com/yannickcr/eslint-plugin-react
'plugin:react-hooks/recommended', // https://www.npmjs.com/package/eslint-plugin-react-hooks
'plugin:storybook/recommended', // https://www.npmjs.com/package/eslint-plugin-storybook
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
impliedStrict: true,
},
},
settings: {
react: {
version: 'detect',
},
'import/resolver': {
alias: [['@', './client/src']],
},
},
rules: {
'react/prop-types': 'off',
'no-console': 'warn',
},
};