Add eslint to dev dependencies and update the existing configuration.
- Legacy-Id: 19634
This commit is contained in:
parent
ceb9fb40c6
commit
4125e71627
21
.eslintrc.js
21
.eslintrc.js
|
@ -1,19 +1,18 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
extends: ["eslint:recommended"],
|
||||||
rules: {
|
rules: {
|
||||||
indent: [2, 4],
|
indent: ["error", 4],
|
||||||
camelcase: 0,
|
quotes: ["error", "double", { avoidEscape: true, allowTemplateLiterals: true }],
|
||||||
"require-jsdoc": 0,
|
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
|
||||||
quotes: [2, "double"],
|
"quote-props": ["error", "as-needed"],
|
||||||
"no-multiple-empty-lines": [2, {max: 2}],
|
"brace-style": ["error", "1tbs", { allowSingleLine: true }],
|
||||||
"quote-props": [2, "as-needed"],
|
|
||||||
"brace-style": [2, "1tbs", {allowSingleLine: true}]
|
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
jquery: true
|
jquery: true,
|
||||||
|
node: true
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
d3: true
|
d3: true
|
||||||
},
|
}
|
||||||
extends: "google"
|
};
|
||||||
};
|
|
1288
package-lock.json
generated
1288
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -11,6 +11,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@parcel/transformer-sass": "^2.0.1",
|
"@parcel/transformer-sass": "^2.0.1",
|
||||||
|
"eslint": "^8.2.0",
|
||||||
"jquery-migrate": "^3.3.2",
|
"jquery-migrate": "^3.3.2",
|
||||||
"parcel": "^2.0.0"
|
"parcel": "^2.0.0"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue