Skip to content

Commit 8d2fb7d

Browse files
Move base ESLint environments into config
1 parent 770ad74 commit 8d2fb7d

File tree

3 files changed

+32
-24
lines changed

3 files changed

+32
-24
lines changed

.eslintrc.js

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
1+
"use strict";
2+
13
module.exports = {
2-
extends: "eslint:all",
4+
ignorePatterns: "!.*",
5+
6+
extends: "eslint:all",
7+
8+
env: {
9+
node: true,
10+
amd: true,
11+
browser: true
12+
},
313

4-
rules: {
5-
"array-bracket-newline": "off",
6-
"array-element-newline": "off",
7-
"func-names": "off",
8-
"function-call-argument-newline": "off",
9-
"max-len": "off",
10-
"max-lines-per-function": "off",
11-
"multiline-ternary": "off",
12-
"no-invalid-this": "off",
13-
"no-magic-numbers": "off",
14-
"no-ternary": "off",
15-
"no-var": "off",
16-
"one-var": "off",
17-
"padded-blocks": "off",
18-
"prefer-arrow-callback": "off",
19-
"quote-props": "off",
20-
"require-unicode-regexp": "off",
21-
"sort-keys": "off",
22-
"vars-on-top": "off"
23-
}
14+
rules: {
15+
"array-bracket-newline": "off",
16+
"array-element-newline": "off",
17+
"func-names": "off",
18+
"function-call-argument-newline": "off",
19+
"max-len": "off",
20+
"max-lines-per-function": "off",
21+
"multiline-ternary": "off",
22+
"no-invalid-this": "off",
23+
"no-magic-numbers": "off",
24+
"no-ternary": "off",
25+
"no-var": "off",
26+
"one-var": "off",
27+
"padded-blocks": "off",
28+
"prefer-arrow-callback": "off",
29+
"quote-props": "off",
30+
"require-unicode-regexp": "off",
31+
"sort-keys": "off",
32+
"vars-on-top": "off"
33+
}
2434
};

tc-string-parse.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env amd, node, browser */
2-
31
"use strict";
42

53
(function (root, factory) {

tc-string-parse.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-env es6, node */
1+
/* eslint-env es6 */
22

33
"use strict";
44

0 commit comments

Comments
 (0)