|
1 | 1 | { |
2 | | - "env": { |
3 | | - "mocha": true, |
4 | | - "node": true |
5 | | - }, |
6 | | - "rules": { |
7 | | - "no-shadow": 0, |
8 | | - "no-unused-vars": 0, |
9 | | - "valid-jsdoc": [ |
10 | | - 2, |
11 | | - { |
12 | | - "requireParamDescription": false, |
13 | | - "requireReturn": false, |
14 | | - "requireReturnDescription": false, |
15 | | - "prefer": { |
16 | | - "returns": "return" |
17 | | - } |
18 | | - } |
19 | | - ], |
20 | | - "no-native-reassign": [ |
21 | | - 2, |
22 | | - { |
23 | | - "exceptions": ["Map"] |
24 | | - } |
25 | | - ], |
26 | | - "no-underscore-dangle": 0, |
27 | | - "quotes": [ |
28 | | - 2, |
29 | | - "single" |
30 | | - ], |
31 | | - "space-before-function-paren": [ |
32 | | - 2, |
33 | | - { |
34 | | - "anonymous": "always", |
35 | | - "named": "never" |
36 | | - } |
37 | | - ], |
38 | | - "strict": [ |
39 | | - 2, |
40 | | - "global" |
41 | | - ] |
42 | | - } |
| 2 | + "ecmaFeatures": { |
| 3 | + "modules": false, |
| 4 | + "experimentalObjectRestSpread": false |
| 5 | + }, |
| 6 | + |
| 7 | + "env": { |
| 8 | + "browser": false, |
| 9 | + "es6": false, |
| 10 | + "node": true |
| 11 | + }, |
| 12 | + |
| 13 | + "globals": { |
| 14 | + "document": false, |
| 15 | + "navigator": false, |
| 16 | + "window": false |
| 17 | + }, |
| 18 | + |
| 19 | + "rules": { |
| 20 | + "accessor-pairs": 2, |
| 21 | + "arrow-spacing": [2, { "before": true, "after": true }], |
| 22 | + "brace-style": [2, "1tbs", { "allowSingleLine": true }], |
| 23 | + "comma-dangle": [2, "never"], |
| 24 | + "comma-spacing": [2, { "before": false, "after": true }], |
| 25 | + "comma-style": [2, "last"], |
| 26 | + "constructor-super": 2, |
| 27 | + "curly": [2, "multi-line"], |
| 28 | + "dot-location": [2, "property"], |
| 29 | + "eol-last": 2, |
| 30 | + "eqeqeq": [2, "allow-null"], |
| 31 | + "generator-star-spacing": [2, { "before": true, "after": true }], |
| 32 | + "handle-callback-err": [2, "^(err|error)$" ], |
| 33 | + "indent": [2, 4], |
| 34 | + "key-spacing": [2, { "beforeColon": false, "afterColon": true }], |
| 35 | + "new-cap": [2, { "newIsCap": true, "capIsNew": false }], |
| 36 | + "new-parens": 2, |
| 37 | + "no-array-constructor": 2, |
| 38 | + "no-caller": 2, |
| 39 | + "no-class-assign": 2, |
| 40 | + "no-cond-assign": 2, |
| 41 | + "no-const-assign": 2, |
| 42 | + "no-control-regex": 2, |
| 43 | + "no-debugger": 2, |
| 44 | + "no-delete-var": 2, |
| 45 | + "no-dupe-args": 2, |
| 46 | + "no-dupe-keys": 2, |
| 47 | + "no-duplicate-case": 2, |
| 48 | + "no-empty-character-class": 2, |
| 49 | + "no-empty-label": 2, |
| 50 | + "no-eval": 2, |
| 51 | + "no-ex-assign": 2, |
| 52 | + "no-extend-native": 2, |
| 53 | + "no-extra-bind": 2, |
| 54 | + "no-extra-boolean-cast": 2, |
| 55 | + "no-extra-parens": [2, "functions"], |
| 56 | + "no-fallthrough": 2, |
| 57 | + "no-floating-decimal": 2, |
| 58 | + "no-func-assign": 2, |
| 59 | + "no-implied-eval": 2, |
| 60 | + "no-inner-declarations": [2, "functions"], |
| 61 | + "no-invalid-regexp": 2, |
| 62 | + "no-irregular-whitespace": 2, |
| 63 | + "no-iterator": 2, |
| 64 | + "no-label-var": 2, |
| 65 | + "no-labels": 2, |
| 66 | + "no-lone-blocks": 2, |
| 67 | + "no-mixed-spaces-and-tabs": 2, |
| 68 | + "no-multi-spaces": 2, |
| 69 | + "no-multi-str": 2, |
| 70 | + "no-multiple-empty-lines": [2, { "max": 1 }], |
| 71 | + "no-native-reassign": 2, |
| 72 | + "no-negated-in-lhs": 2, |
| 73 | + "no-new": 2, |
| 74 | + "no-new-func": 2, |
| 75 | + "no-new-object": 2, |
| 76 | + "no-new-require": 2, |
| 77 | + "no-new-wrappers": 2, |
| 78 | + "no-obj-calls": 2, |
| 79 | + "no-octal": 2, |
| 80 | + "no-octal-escape": 2, |
| 81 | + "no-proto": 2, |
| 82 | + "no-redeclare": 2, |
| 83 | + "no-regex-spaces": 2, |
| 84 | + "no-return-assign": 2, |
| 85 | + "no-self-compare": 2, |
| 86 | + "no-sequences": 2, |
| 87 | + "no-shadow-restricted-names": 2, |
| 88 | + "no-spaced-func": 2, |
| 89 | + "no-sparse-arrays": 2, |
| 90 | + "no-this-before-super": 2, |
| 91 | + "no-throw-literal": 2, |
| 92 | + "no-trailing-spaces": 2, |
| 93 | + "no-undef": 2, |
| 94 | + "no-undef-init": 2, |
| 95 | + "no-unexpected-multiline": 2, |
| 96 | + "no-unneeded-ternary": 2, |
| 97 | + "no-unreachable": 2, |
| 98 | + "no-unused-vars": [2, { "vars": "all", "args": "none" }], |
| 99 | + "no-useless-call": 2, |
| 100 | + "no-with": 2, |
| 101 | + "one-var": [2, { "initialized": "never" }], |
| 102 | + "operator-linebreak": [2, "after"], |
| 103 | + "quotes": [2, "single", "avoid-escape"], |
| 104 | + "radix": 2, |
| 105 | + "semi": [2, "always"], |
| 106 | + "space-after-keywords": [2, "always"], |
| 107 | + "space-before-blocks": [2, "always"], |
| 108 | + "space-before-function-paren": [2, { |
| 109 | + "anonymous": "always", |
| 110 | + "named": "never" |
| 111 | + }], |
| 112 | + "space-in-parens": [2, "never"], |
| 113 | + "space-infix-ops": 2, |
| 114 | + "space-return-throw-case": 2, |
| 115 | + "space-unary-ops": [2, { "words": true, "nonwords": false }], |
| 116 | + "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }], |
| 117 | + "use-isnan": 2, |
| 118 | + "valid-typeof": 2, |
| 119 | + "wrap-iife": [2, "any"], |
| 120 | + "yoda": [2, "never"], |
| 121 | + |
| 122 | + "valid-jsdoc": [2, { |
| 123 | + "requireParamDescription": false, |
| 124 | + "requireReturn": false, |
| 125 | + "requireReturnDescription": false, |
| 126 | + "prefer": { |
| 127 | + "returns": "return" |
| 128 | + } |
| 129 | + }] |
| 130 | + } |
43 | 131 | } |
0 commit comments