eslint-config-ray 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +4 -4
- package/lib/airbnb-conf.js +4 -3
- package/lib/base.js +56 -57
- package/lib/globals-opts.js +2 -1
- package/lib/index.js +6 -5
- package/lib/ray.2.0.js +5 -4
- package/lib/react.js +9 -8
- package/lib/recommended-conf.js +4 -3
- package/lib/rules.js +43 -47
- package/package.json +5 -1
- package/readme.md +70 -70
package/.eslintrc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: './src/index.js',
|
|
3
|
-
root: true
|
|
4
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: './src/index.js',
|
|
3
|
+
root: true
|
|
4
|
+
};
|
package/lib/airbnb-conf.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
module.exports = {
|
|
3
|
-
extends: ["airbnb"],
|
|
4
|
+
extends: [ "airbnb" ],
|
|
4
5
|
env: {
|
|
5
6
|
browser: !0,
|
|
6
7
|
node: !0,
|
|
@@ -16,5 +17,5 @@ module.exports = {
|
|
|
16
17
|
experimentalObjectRestSpread: !0
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
|
-
plugins: ["react", "babel"]
|
|
20
|
-
};
|
|
20
|
+
plugins: [ "react", "babel" ]
|
|
21
|
+
};
|
package/lib/base.js
CHANGED
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
module.exports = {
|
|
3
|
-
"max-len": [2, 160, 2],
|
|
4
|
+
"max-len": [ 2, 160, 2 ],
|
|
4
5
|
"no-redeclare": 2,
|
|
5
6
|
"no-unreachable": 2,
|
|
6
|
-
"no-magic-numbers": [2, {
|
|
7
|
+
"no-magic-numbers": [ 2, {
|
|
7
8
|
ignoreArrayIndexes: !0,
|
|
8
|
-
ignore: [-2, -1, 0, 1, 2],
|
|
9
|
+
ignore: [ -2, -1, 0, 1, 2 ],
|
|
9
10
|
enforceConst: !0,
|
|
10
11
|
detectObjects: !1
|
|
11
|
-
}],
|
|
12
|
-
"comma-style": [2, "last"],
|
|
13
|
-
curly: [2, "all"],
|
|
14
|
-
indent: [2, 2, {
|
|
12
|
+
} ],
|
|
13
|
+
"comma-style": [ 2, "last" ],
|
|
14
|
+
curly: [ 2, "all" ],
|
|
15
|
+
indent: [ 2, 2, {
|
|
15
16
|
SwitchCase: 1
|
|
16
|
-
}],
|
|
17
|
-
semi: [2, "always"],
|
|
17
|
+
} ],
|
|
18
|
+
semi: [ 2, "always" ],
|
|
18
19
|
"no-extra-semi": 2,
|
|
19
|
-
"comma-dangle": [2, "never"],
|
|
20
|
+
"comma-dangle": [ 2, "never" ],
|
|
20
21
|
"no-constant-condition": 2,
|
|
21
|
-
"dot-location": [2, "property"],
|
|
22
|
-
"space-before-function-paren": [2, "never"],
|
|
23
|
-
"space-unary-ops": [2, {
|
|
22
|
+
"dot-location": [ 2, "property" ],
|
|
23
|
+
"space-before-function-paren": [ 2, "never" ],
|
|
24
|
+
"space-unary-ops": [ 2, {
|
|
24
25
|
words: !0,
|
|
25
26
|
nonwords: !1
|
|
26
|
-
}],
|
|
27
|
+
} ],
|
|
28
|
+
"spaced-comment": [ 2, "always", {
|
|
29
|
+
exceptions: [ "-", "+", "*", "=", "&", "!" ],
|
|
30
|
+
markers: [ "/", "!<", "global" ]
|
|
31
|
+
} ],
|
|
27
32
|
"space-infix-ops": 2,
|
|
28
33
|
"no-sparse-arrays": 2,
|
|
29
|
-
"array-bracket-spacing": [2, "never"],
|
|
30
|
-
"object-curly-spacing": [2, "always"],
|
|
31
|
-
"keyword-spacing": [2, {
|
|
34
|
+
"array-bracket-spacing": [ 2, "never" ],
|
|
35
|
+
"object-curly-spacing": [ 2, "always" ],
|
|
36
|
+
"keyword-spacing": [ 2, {
|
|
32
37
|
overrides: {
|
|
33
38
|
if: {
|
|
34
39
|
after: !0
|
|
@@ -40,69 +45,63 @@ module.exports = {
|
|
|
40
45
|
after: !0
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
|
-
}],
|
|
44
|
-
"template-curly-spacing": [2, "never"],
|
|
45
|
-
"rest-spread-spacing": [2, "never"],
|
|
46
|
-
quotes: [2, "single", {
|
|
48
|
+
} ],
|
|
49
|
+
"template-curly-spacing": [ 2, "never" ],
|
|
50
|
+
"rest-spread-spacing": [ 2, "never" ],
|
|
51
|
+
quotes: [ 2, "single", {
|
|
47
52
|
allowTemplateLiterals: !0
|
|
48
|
-
}],
|
|
53
|
+
} ],
|
|
49
54
|
camelcase: 2,
|
|
50
55
|
"no-extend-native": 2,
|
|
51
56
|
"no-debugger": 2,
|
|
52
57
|
"no-spaced-func": 2,
|
|
53
58
|
"no-undef": 2,
|
|
54
59
|
"no-undef-init": 2,
|
|
55
|
-
"key-spacing": [2, {
|
|
60
|
+
"key-spacing": [ 2, {
|
|
56
61
|
beforeColon: !1,
|
|
57
62
|
afterColon: !0
|
|
58
|
-
}],
|
|
63
|
+
} ],
|
|
59
64
|
"valid-typeof": 2,
|
|
60
|
-
"object-shorthand": [2, "always", {
|
|
65
|
+
"object-shorthand": [ 2, "always", {
|
|
61
66
|
ignoreConstructors: !0,
|
|
62
67
|
avoidQuotes: !0
|
|
63
|
-
}],
|
|
64
|
-
yoda: [2, "never", {
|
|
68
|
+
} ],
|
|
69
|
+
yoda: [ 2, "never", {
|
|
65
70
|
onlyEquality: !0
|
|
66
|
-
}],
|
|
67
|
-
"wrap-iife": [2, "inside"],
|
|
68
|
-
"no-unused-vars": [2, {
|
|
71
|
+
} ],
|
|
72
|
+
"wrap-iife": [ 2, "inside" ],
|
|
73
|
+
"no-unused-vars": [ 2, {
|
|
69
74
|
vars: "all",
|
|
70
75
|
args: "none",
|
|
71
76
|
ignoreRestSiblings: !1
|
|
72
|
-
}],
|
|
73
|
-
"no-plusplus": [2, {
|
|
77
|
+
} ],
|
|
78
|
+
"no-plusplus": [ 2, {
|
|
74
79
|
allowForLoopAfterthoughts: !0
|
|
75
|
-
}],
|
|
76
|
-
"one-var": [2, {
|
|
80
|
+
} ],
|
|
81
|
+
"one-var": [ 2, {
|
|
77
82
|
var: "always",
|
|
78
83
|
let: "never",
|
|
79
84
|
const: "never"
|
|
80
|
-
}],
|
|
81
|
-
"no-mixed-operators": [2, {
|
|
82
|
-
groups: [
|
|
83
|
-
["+", "-", "*", "/", "%", "**"],
|
|
84
|
-
["&", "|", "^", "~", "<<", ">>", ">>>"],
|
|
85
|
-
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
|
|
86
|
-
["&&", "||"],
|
|
87
|
-
["in", "instanceof"]
|
|
88
|
-
],
|
|
85
|
+
} ],
|
|
86
|
+
"no-mixed-operators": [ 2, {
|
|
87
|
+
groups: [ [ "+", "-", "*", "/", "%", "**" ], [ "&", "|", "^", "~", "<<", ">>", ">>>" ], [ "==", "!=", "===", "!==", ">", ">=", "<", "<=" ], [ "&&", "||" ], [ "in", "instanceof" ] ],
|
|
89
88
|
allowSamePrecedence: !0
|
|
90
|
-
}],
|
|
91
|
-
"no-extra-parens": [2, "all", {
|
|
89
|
+
} ],
|
|
90
|
+
"no-extra-parens": [ 2, "all", {
|
|
92
91
|
nestedBinaryExpressions: !1,
|
|
93
92
|
ignoreJSX: "all"
|
|
94
|
-
}],
|
|
95
|
-
"no-use-before-define": [2, {
|
|
93
|
+
} ],
|
|
94
|
+
"no-use-before-define": [ 2, {
|
|
96
95
|
functions: !1,
|
|
97
96
|
classes: !0,
|
|
98
97
|
variables: !1
|
|
99
|
-
}],
|
|
100
|
-
eqeqeq: [2, "smart"],
|
|
101
|
-
"new-cap": [2, {
|
|
98
|
+
} ],
|
|
99
|
+
eqeqeq: [ 2, "smart" ],
|
|
100
|
+
"new-cap": [ 2, {
|
|
102
101
|
newIsCap: !1,
|
|
103
102
|
capIsNew: !1,
|
|
104
103
|
properties: !1
|
|
105
|
-
}],
|
|
104
|
+
} ],
|
|
106
105
|
"no-dupe-args": 2,
|
|
107
106
|
"no-dupe-class-members": 2,
|
|
108
107
|
"no-dupe-else-if": 2,
|
|
@@ -123,14 +122,14 @@ module.exports = {
|
|
|
123
122
|
"use-isnan": 2,
|
|
124
123
|
"constructor-super": 2,
|
|
125
124
|
"no-const-assign": 2,
|
|
126
|
-
"max-nested-callbacks": ["error", 5],
|
|
127
|
-
"func-name-matching": [2, "always", {
|
|
125
|
+
"max-nested-callbacks": [ "error", 5 ],
|
|
126
|
+
"func-name-matching": [ 2, "always", {
|
|
128
127
|
includeCommonJSModuleExports: !1
|
|
129
|
-
}],
|
|
128
|
+
} ],
|
|
130
129
|
"no-trailing-spaces": 1,
|
|
131
|
-
"no-multiple-empty-lines": [1, {
|
|
130
|
+
"no-multiple-empty-lines": [ 1, {
|
|
132
131
|
max: 2
|
|
133
|
-
}],
|
|
132
|
+
} ],
|
|
134
133
|
"prefer-arrow-callback": 1,
|
|
135
134
|
"prefer-template": 1,
|
|
136
135
|
"no-undefined": 0,
|
|
@@ -184,4 +183,4 @@ module.exports = {
|
|
|
184
183
|
"vars-on-top": 0,
|
|
185
184
|
"linebreak-style": 0,
|
|
186
185
|
"max-classes-per-file": 0
|
|
187
|
-
};
|
|
186
|
+
};
|
package/lib/globals-opts.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
var _rules = require("./rules"), _globals = require("./globals-opts");
|
|
4
|
+
|
|
4
5
|
module.exports = {
|
|
5
6
|
parser: "babel-eslint",
|
|
6
|
-
extends: ["airbnb", "prettier", "plugin:react/recommended", "prettier/react"],
|
|
7
|
-
plugins: ["react", "babel"],
|
|
7
|
+
extends: [ "airbnb", "prettier", "plugin:react/recommended", "prettier/react" ],
|
|
8
|
+
plugins: [ "react", "babel" ],
|
|
8
9
|
parserOptions: {
|
|
9
10
|
ecmaVersion: 6,
|
|
10
11
|
ecmaFeatures: {
|
|
@@ -23,4 +24,4 @@ module.exports = {
|
|
|
23
24
|
globals: _globals,
|
|
24
25
|
rules: _rules,
|
|
25
26
|
root: !0
|
|
26
|
-
};
|
|
27
|
+
};
|
package/lib/ray.2.0.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
var _rules = require("./rules"), _globals = require("./globals-opts");
|
|
4
|
+
|
|
4
5
|
module.exports = {
|
|
5
|
-
extends: ["./recommended-conf", "./airbnb-conf"].map(require.resolve),
|
|
6
|
+
extends: [ "./recommended-conf", "./airbnb-conf" ].map(require.resolve),
|
|
6
7
|
parserOptions: {
|
|
7
8
|
ecmaVersion: 6,
|
|
8
9
|
ecmaFeatures: {
|
|
@@ -12,4 +13,4 @@ module.exports = {
|
|
|
12
13
|
},
|
|
13
14
|
globals: _globals,
|
|
14
15
|
rules: _rules
|
|
15
|
-
};
|
|
16
|
+
};
|
package/lib/react.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
module.exports = {
|
|
3
4
|
"react/sort-comp": 2,
|
|
4
|
-
"react/jsx-pascal-case": [2, {
|
|
5
|
+
"react/jsx-pascal-case": [ 2, {
|
|
5
6
|
allowAllCaps: !0
|
|
6
|
-
}],
|
|
7
|
+
} ],
|
|
7
8
|
"react/jsx-boolean-value": 2,
|
|
8
9
|
"react/jsx-equals-spacing": 2,
|
|
9
10
|
"react/jsx-first-prop-new-line": 2,
|
|
@@ -21,11 +22,11 @@ module.exports = {
|
|
|
21
22
|
"react/no-unknown-property": 2,
|
|
22
23
|
"react/self-closing-comp": 2,
|
|
23
24
|
"react/void-dom-elements-no-children": 2,
|
|
24
|
-
"jsx-quotes": [2, "prefer-double"],
|
|
25
|
-
"react/jsx-filename-extension": [2, {
|
|
26
|
-
extensions: [".js", ".jsx", ".md", ".ts", ".tsx"]
|
|
27
|
-
}],
|
|
28
|
-
"react/jsx-fragments": [2, "element"],
|
|
25
|
+
"jsx-quotes": [ 2, "prefer-double" ],
|
|
26
|
+
"react/jsx-filename-extension": [ 2, {
|
|
27
|
+
extensions: [ ".js", ".jsx", ".md", ".ts", ".tsx" ]
|
|
28
|
+
} ],
|
|
29
|
+
"react/jsx-fragments": [ 2, "element" ],
|
|
29
30
|
"react/no-set-state": 0,
|
|
30
31
|
"react/prefer-stateless-function": 0,
|
|
31
32
|
"react/require-default-props": 0,
|
|
@@ -56,4 +57,4 @@ module.exports = {
|
|
|
56
57
|
"jsx-a11y/href-no-hash": 0,
|
|
57
58
|
"jsx-a11y/label-has-associated-control": 0,
|
|
58
59
|
"import/no-useless-path-segments": 0
|
|
59
|
-
};
|
|
60
|
+
};
|
package/lib/recommended-conf.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
module.exports = {
|
|
3
|
-
extends: ["standard", "standard-react", "eslint:recommended", "plugin:react/recommended"],
|
|
4
|
+
extends: [ "standard", "standard-react", "eslint:recommended", "plugin:react/recommended" ],
|
|
4
5
|
env: {
|
|
5
6
|
browser: !0,
|
|
6
7
|
node: !0,
|
|
@@ -16,5 +17,5 @@ module.exports = {
|
|
|
16
17
|
experimentalObjectRestSpread: !0
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
|
-
plugins: ["react", "babel"]
|
|
20
|
-
};
|
|
20
|
+
plugins: [ "react", "babel" ]
|
|
21
|
+
};
|
package/lib/rules.js
CHANGED
|
@@ -1,54 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var t, o = Object.keys(r);
|
|
5
|
-
return Object.getOwnPropertySymbols && (t = Object.getOwnPropertySymbols(r), e && (t = t.filter(function(e) {
|
|
6
|
-
return Object.getOwnPropertyDescriptor(r, e).enumerable
|
|
7
|
-
})), o.push.apply(o, t)), o
|
|
8
|
-
}
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"), _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
4
|
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
5
|
+
function ownKeys(e, r) {
|
|
6
|
+
var t = Object.keys(e);
|
|
7
|
+
if (Object.getOwnPropertySymbols) {
|
|
8
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
9
|
+
r && (o = o.filter(function(r) {
|
|
10
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
11
|
+
})), t.push.apply(t, o);
|
|
18
12
|
}
|
|
19
|
-
return
|
|
13
|
+
return t;
|
|
20
14
|
}
|
|
21
15
|
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
function _objectSpread(e) {
|
|
17
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
18
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
19
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
20
|
+
(0, _defineProperty2.default)(e, r, t[r]);
|
|
21
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
22
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
29
26
|
}
|
|
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
|
-
module.exports = rules;
|
|
27
|
+
|
|
28
|
+
var base = require("./base"), react = require("./react"), other = {
|
|
29
|
+
"no-restricted-imports": [ 2, {
|
|
30
|
+
paths: [ {
|
|
31
|
+
name: "antd",
|
|
32
|
+
message: "It is forbidden to use antd, please use amos-antd or amos-framework!!!!"
|
|
33
|
+
} ],
|
|
34
|
+
patterns: [ "rc-*", "lodash", "lodash/*", "antd/*" ]
|
|
35
|
+
} ],
|
|
36
|
+
"no-restricted-modules": [ 2, {
|
|
37
|
+
paths: [ {
|
|
38
|
+
name: "antd",
|
|
39
|
+
message: "It is forbidden to use antd, please use amos-antd or amos-framework!!!!"
|
|
40
|
+
} ],
|
|
41
|
+
patterns: [ "rc-*", "lodash", "lodash/*", "antd/*" ]
|
|
42
|
+
} ],
|
|
43
|
+
"import/extensions": 0,
|
|
44
|
+
"import/no-unresolved": 0,
|
|
45
|
+
"import/no-extraneous-dependencies": 0,
|
|
46
|
+
"import/prefer-default-export": 0,
|
|
47
|
+
"standard/no-callback-literal": 0
|
|
48
|
+
}, rules = _objectSpread(_objectSpread(_objectSpread({}, base), react), other);
|
|
49
|
+
|
|
50
|
+
module.exports = rules;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-ray",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "the common eslint config for ray team",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"babel-eslint": "^10.1.0",
|
|
19
|
+
"@babel/runtime": "^7.13.10",
|
|
19
20
|
"eslint": "^7.5.0",
|
|
20
21
|
"eslint-config-airbnb": "^18.2.0",
|
|
21
22
|
"eslint-config-prettier": "^6.11.0",
|
|
@@ -28,5 +29,8 @@
|
|
|
28
29
|
"prettier": "^2.0.5"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"registry": "https://registry.npmjs.org/"
|
|
31
35
|
}
|
|
32
36
|
}
|
package/readme.md
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
# eslint-config-ray
|
|
2
|
-
|
|
3
|
-
## description
|
|
4
|
-
|
|
5
|
-
## 💎 author
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
ilex.h
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 💿 Installation
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
# global
|
|
15
|
-
npm install -g eslint-config-ray
|
|
16
|
-
# native
|
|
17
|
-
npm install --save-dev eslint-config-ray
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## 📖 Usage
|
|
21
|
-
|
|
22
|
-
.eslintrc
|
|
23
|
-
|
|
24
|
-
* 🔧 simple use
|
|
25
|
-
|
|
26
|
-
```json
|
|
27
|
-
{
|
|
28
|
-
"extends": "eslint-config-ray"
|
|
29
|
-
}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
* 🔧 with custom ruls
|
|
33
|
-
|
|
34
|
-
```json
|
|
35
|
-
{
|
|
36
|
-
"extends": "eslint-config-ray",
|
|
37
|
-
"globals": {
|
|
38
|
-
"React": true,
|
|
39
|
-
"JQuery": true,
|
|
40
|
-
...
|
|
41
|
-
},
|
|
42
|
-
"rules": {
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## develop
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm i -g ac-build
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## changelog
|
|
55
|
-
|
|
56
|
-
### 2020-8-13 v2.0.2
|
|
57
|
-
|
|
58
|
-
close some lint
|
|
59
|
-
|
|
60
|
-
### 2020-7-29 v2.0.1
|
|
61
|
-
|
|
62
|
-
add forbidden module
|
|
63
|
-
|
|
64
|
-
### 2020-7-29 v2.0.0
|
|
65
|
-
|
|
66
|
-
update eslint and rules
|
|
67
|
-
|
|
68
|
-
## License
|
|
69
|
-
|
|
70
|
-
MIT
|
|
1
|
+
# eslint-config-ray
|
|
2
|
+
|
|
3
|
+
## description
|
|
4
|
+
|
|
5
|
+
## 💎 author
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
ilex.h
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 💿 Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# global
|
|
15
|
+
npm install -g eslint-config-ray
|
|
16
|
+
# native
|
|
17
|
+
npm install --save-dev eslint-config-ray
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 📖 Usage
|
|
21
|
+
|
|
22
|
+
.eslintrc
|
|
23
|
+
|
|
24
|
+
* 🔧 simple use
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"extends": "eslint-config-ray"
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
* 🔧 with custom ruls
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"extends": "eslint-config-ray",
|
|
37
|
+
"globals": {
|
|
38
|
+
"React": true,
|
|
39
|
+
"JQuery": true,
|
|
40
|
+
...
|
|
41
|
+
},
|
|
42
|
+
"rules": {
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## develop
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm i -g ac-build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## changelog
|
|
55
|
+
|
|
56
|
+
### 2020-8-13 v2.0.2
|
|
57
|
+
|
|
58
|
+
close some lint
|
|
59
|
+
|
|
60
|
+
### 2020-7-29 v2.0.1
|
|
61
|
+
|
|
62
|
+
add forbidden module
|
|
63
|
+
|
|
64
|
+
### 2020-7-29 v2.0.0
|
|
65
|
+
|
|
66
|
+
update eslint and rules
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
MIT
|