-
Notifications
You must be signed in to change notification settings - Fork 25
/
.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',
},
};