-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
72 lines (71 loc) · 1.79 KB
/
index.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
var restrictedGlobals = require("eslint-restricted-globals");
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:node/recommended",
"plugin:react/recommended",
],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
ecmaVersion: 2017,
sourceType: "module",
},
plugins: ["prettier", "node", "react"],
rules: {
"array-callback-return": "error",
curly: "error",
eqeqeq: [
"error",
"always",
{
null: "ignore",
},
],
"for-direction": "error",
"getter-return": "error",
"guard-for-in": "error",
"handle-callback-err": "error",
"no-await-in-loop": "error",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-console": "warn",
"no-duplicate-imports": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-path-concat": "error",
"no-restricted-globals": ["error"].concat(restrictedGlobals),
"no-script-url": "error",
"no-sync": "error",
"no-throw-literal": "error",
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-use-before-define": "error",
"no-useless-computed-key": "error",
"no-var": "error",
"node/no-unsupported-features": [
"error",
{
ignores: ["modules"],
},
],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prettier/prettier": "error",
quotes: ["error", "single", { avoidEscape: true }],
"react/display-name": "off",
"react/prop-types": "off",
"unicode-bom": "error",
},
};