-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (37 loc) · 903 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
37
38
const path = require('path');
module.exports = {
extends: ['eslint:recommended', 'prettier', 'plugin:react-hooks/recommended'],
plugins: ['babel', 'react', 'prettier'],
parser: '@babel/eslint-parser',
env: {
browser: true,
node: true,
commonjs: true,
es6: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
modules: true,
arrowFunctions: true,
restParams: true,
experimentalObjectRestSpread: true,
},
babelOptions: {
configFile: path.join(__dirname, 'babel.config.js'),
},
},
settings: {
'import/resolver': 'webpack',
},
rules: {
'prettier/prettier': 'error',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'no-unused-vars': 'warn',
'no-empty': 'warn',
},
ignorePatterns: ['**/src/**/*.json', '**/public/**/*.json'],
};