Skip to content

Commit 8bf2492

Browse files
committed
[eslint] update linting config
1 parent 97ac9c2 commit 8bf2492

33 files changed

+574
-539
lines changed

.eslintrc

Lines changed: 13 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,18 @@
11
{
2+
"root": true,
3+
4+
"extends": "@ljharb/eslint-config/node/0.4",
5+
26
"rules": {
7+
"callback-return": "warn",
8+
"camelcase": "off",
9+
"eqeqeq": ["error", "always", {"null": "ignore"}],
10+
"func-style": "off",
11+
"id-length": "off",
312
"indent": [2, 2, {"SwitchCase": 1}],
4-
"quotes": [2, "single"],
5-
"linebreak-style": [2, "unix"],
6-
"semi": [2, "always"],
7-
"curly": [2, "multi-line"],
8-
"handle-callback-err": [2, "^err"],
9-
"valid-jsdoc": [2, {
10-
"requireReturn": false,
11-
"requireReturnDescription": false,
12-
"prefer": {
13-
"return": "returns"
14-
}
15-
}],
16-
"require-jsdoc": [2, {
17-
"require": {
18-
"FunctionDeclaration": true
19-
}
20-
}],
21-
"no-redeclare": [2, { "builtinGlobals": true }],
22-
"no-shadow": [2, { "builtinGlobals": true, "hoist": "all" }],
23-
"no-use-before-define": [2, "nofunc"],
24-
"no-shadow-restricted-names": 2,
25-
"no-extra-semi": 2,
26-
"no-unused-vars": 2,
27-
"no-undef": 2,
28-
"no-irregular-whitespace": 2,
29-
"no-console": 2,
30-
"key-spacing": 0,
31-
"strict": 0,
32-
"dot-notation": 0,
33-
"eol-last": 0,
34-
"no-new": 0,
35-
"semi-spacing": 0,
36-
"no-multi-spaces": 0,
37-
"eqeqeq": 0,
38-
"no-mixed-requires": 0
13+
"max-lines": "off",
14+
"no-param-reassign": "warn",
15+
"no-underscore-dangle": "off",
16+
"sort-keys": "off",
3917
},
40-
"env": {
41-
"node": true
42-
},
43-
"ignorePatterns": [
44-
"node_modules/*",
45-
"index.d.ts",
46-
"coverage",
47-
]
4818
}

lib/browser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
'use strict';
2+
13
/* eslint-env browser */
2-
module.exports = typeof self == 'object' ? self.FormData : window.FormData;
4+
module.exports = typeof self === 'object' ? self.FormData : window.FormData;

0 commit comments

Comments
 (0)