-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (34 loc) · 981 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
const { peerDependencies } = require('./package.json');
module.exports = {
env: {
browser: true,
},
extends: ['airbnb', 'prettier', 'standard-react', 'plugin:prettier/recommended'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2021,
sourceType: 'module',
},
plugins: ['prettier', 'sort-keys-fix'],
rules: {
'class-methods-use-this': 'off',
'func-names': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/no-unresolved': ['error', { ignore: Object.keys(peerDependencies) }],
'no-console': 'off',
'no-process-exit': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': 'warn',
'object-shorthand': 'off',
'prettier/prettier': 'error',
'react/jsx-filename-extension': 'off',
'sort-keys-fix/sort-keys-fix': ['error', 'asc', { caseSensitive: true, natural: false }],
},
settings: {
react: {
version: '^17.0.2',
},
},
};