UNPKG

4.11 kBPlain TextView Raw
1{
2 "extends": "airbnb-base",
3 "parserOptions": {
4 "sourceType": "script"
5 },
6
7 "rules": {
8 // Customized
9 "handle-callback-err": [ "error","^(e$|(e|(.*(_e|E)))rr)" ],
10 "comma-dangle": ["error", {
11 "arrays": "always-multiline",
12 "objects": "always-multiline",
13 "imports": "always-multiline",
14 "exports": "always-multiline",
15 "functions": "never"
16 }],
17 "no-return-await": "off",
18 "no-constant-condition": "off",
19 "no-empty": ["error", { "allowEmptyCatch": true }],
20 "no-underscore-dangle": "off",
21 "no-console": "off",
22 "no-mixed-operators": ["error", { "allowSamePrecedence": true }],
23 "strict": ["error", "global"],
24 "consistent-return": "off",
25 "func-names": "off",
26 "no-tabs": "off",
27 "indent": ["error", "tab", { "SwitchCase": 1 }],
28 "no-eq-null": "off",
29 "camelcase": "off",
30 "no-new": "off",
31 "no-shadow": "off",
32 "no-use-before-define": ["error", "nofunc"],
33 "no-prototype-builtins": "off",
34 "new-cap": "off",
35 "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
36 "object-curly-newline": "off",
37 "no-restricted-globals": "off",
38 "function-paren-newline": "off",
39 "import/no-unresolved": "error",
40 "quotes": ["error", "single", {
41 "avoidEscape": true,
42 "allowTemplateLiterals": true
43 }],
44 "no-else-return": [ "error", { "allowElseIf": true } ],
45 "operator-linebreak": [ "error", "after" ],
46 "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
47
48 // ES6
49 "prefer-rest-params": "off",
50 "prefer-spread": "off",
51 "prefer-arrow-callback": "off",
52 "prefer-template": "off",
53 "no-var": "off",
54 "object-shorthand": "off",
55 "vars-on-top": "off",
56 "prefer-destructuring": "off",
57
58 // TODO
59 "import/no-extraneous-dependencies": "off",
60 "import/no-dynamic-require": "off",
61 "import/newline-after-import": "off",
62 "no-bitwise": "off",
63 "global-require": "off",
64 "max-len": "off",
65 "no-param-reassign": "off",
66 "no-restricted-syntax": "off",
67 "no-script-url": "off",
68 "default-case": "off",
69 "linebreak-style": "off",
70
71 // "no-multi-assign": "off",
72 // "one-var": "off",
73 // "no-undef": "off",
74 // "max-nested-callbacks": "off",
75 // "no-mixed-requires": "off",
76 // "brace-style": "off",
77 // "max-statements-per-line": "off",
78 // "no-unused-vars": "off",
79 // "no-mixed-spaces-and-tabs": "off",
80 // "no-useless-concat": "off",
81 // "require-jsdoc": "off",
82 // "eqeqeq": "off",
83 // "no-negated-condition": "off",
84 // "one-var-declaration-per-line": "off",
85 // "no-lonely-if": "off",
86 // "radix": "off",
87 // "no-else-return": "off",
88 // "no-useless-escape": "off",
89 // "block-scoped-var": "off",
90 // "operator-assignment": "off",
91 // "yoda": "off",
92 // "no-loop-func": "off",
93 // "no-void": "off",
94 // "valid-jsdoc": "off",
95 // "no-cond-assign": "off",
96 // "no-redeclare": "off",
97 // "no-unreachable": "off",
98 // "no-nested-ternary": "off",
99 // "operator-linebreak": "off",
100 // "guard-for-in": "off",
101 // "no-unneeded-ternary": "off",
102 // "no-sequences": "off",
103 // "no-extend-native": "off",
104 // "no-shadow-restricted-names": "off",
105 // "no-extra-boolean-cast": "off",
106 // "no-path-concat": "off",
107 // "no-unused-expressions": "off",
108 // "no-return-assign": "off",
109 // "no-restricted-modules": "off",
110 // "object-curly-spacing": "off",
111 // "indent": "off",
112 // "padded-blocks": "off",
113 // "eol-last": "off",
114 // "lines-around-directive": "off",
115 // "strict": "off",
116 // "comma-dangle": "off",
117 // "no-multi-spaces": "off",
118 // "quotes": "off",
119 // "keyword-spacing": "off",
120 // "no-mixed-operators": "off",
121 // "comma-spacing": "off",
122 // "no-trailing-spaces": "off",
123 // "key-spacing": "off",
124 // "no-multiple-empty-lines": "off",
125 // "spaced-comment": "off",
126 // "space-in-parens": "off",
127 // "block-spacing": "off",
128 // "quote-props": "off",
129 // "space-unary-ops": "off",
130 // "no-empty": "off",
131 // "dot-notation": "off",
132 // "func-call-spacing": "off",
133 // "array-bracket-spacing": "off",
134 // "object-property-newline": "off",
135 // "no-continue": "off",
136 // "no-extra-semi": "off",
137 // "no-spaced-func": "off",
138 // "no-useless-return": "off"
139 }
140}