-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I noticed that the `scripts` directory, which begins to have a lot of files as we automate more tasks (like #1524), wasn't linted. That directory contains code in two languages BASH and JS (Node.js), with a move to prefer JS files (as it's a JS/TS project). So I chose to add an `.eslintrc.js` file (which is a deprecated format but I couldn't make the new one work) and lint script on that directory. I subsequently fixed some linting errors. For now, that script isn't run by our GitHub actions, I will see whether we can do an intelligent kind of runner which detects if scripts have been updated.
- Loading branch information
1 parent
e5894f8
commit 046bd3f
Showing
7 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ module.exports = { | |
env: { | ||
es6: true, | ||
browser: true, | ||
commonjs: true, | ||
mocha: true, | ||
}, | ||
|
||
globals: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
}, | ||
env: { | ||
es6: true, | ||
node: true, | ||
commonjs: true, | ||
}, | ||
extends: ["prettier"], | ||
rules: { | ||
"comma-dangle": [1, "only-multiline"], | ||
"no-cond-assign": 0, | ||
"no-constant-condition": 0, | ||
"no-control-regex": 0, | ||
"no-debugger": 2, | ||
"no-dupe-args": 2, | ||
"no-dupe-keys": 2, | ||
"no-duplicate-case": 1, | ||
"no-empty-character-class": 1, | ||
"no-empty": 0, | ||
"no-ex-assign": 1, | ||
"no-extra-boolean-cast": 1, | ||
"no-extra-parens": [1, "functions"], | ||
"no-extra-semi": 2, | ||
"no-func-assign": 2, | ||
"no-inner-declarations": 0, | ||
"no-invalid-regexp": 1, | ||
"no-irregular-whitespace": 1, | ||
"no-negated-in-lhs": 2, | ||
"no-obj-calls": 2, | ||
"no-regex-spaces": 1, | ||
"no-sparse-arrays": 2, | ||
"no-unreachable": 2, | ||
"use-isnan": 2, | ||
"valid-jsdoc": 0, | ||
"valid-typeof": 2, | ||
"no-unexpected-multiline": 0, | ||
"no-trailing-spaces": 2, | ||
"no-multiple-empty-lines": 1, | ||
"accessor-pairs": [1, { setWithoutGet: true }], | ||
"block-scoped-var": 1, | ||
complexity: 0, | ||
curly: [1, "all"], | ||
"no-case-declarations": 0, | ||
"no-var": 1, | ||
"prefer-const": 1, | ||
"linebreak-style": [1, "unix"], | ||
semi: [1, "always"], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters