-
Notifications
You must be signed in to change notification settings - Fork 3
/
js.js
48 lines (46 loc) · 1.02 KB
/
js.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
39
40
41
42
43
44
45
46
47
48
"use strict";
module.exports = {
extends: [
'airbnb',
'plugin:prettier/recommended',
],
plugins: ['react-hooks'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx'],
},
},
},
rules: {
'import/extensions': 0,
'import/no-extraneous-dependencies': 0,
'jsx-a11y/anchor-is-valid': 0,
'max-len': 0,
'no-nested-ternary': 0,
'no-use-before-define': 0,
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react/jsx-curly-newline': 0,
'react/jsx-filename-extension': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-props-no-spreading': 'warn',
'react/no-unescaped-entities': 0,
'react/prop-types': [1, { skipUndeclared: true }],
'spaced-comment': 0,
// Prettier
'prettier/prettier': [
'error',
{
printWidth: 80,
semi: true,
singleQuote: true,
trailingComma: 'es5',
},
],
},
env: {
browser: true,
node: true,
},
};