-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add(CI): eslint, prettier, typescript for npm related install scripts (…
…#14) Ensure we run typescript, eslint, and prettier against the js install scripts used in the npm install method.
- Loading branch information
Showing
9 changed files
with
1,435 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# don't ever lint node_modules | ||
node_modules | ||
.eslintrc.js |
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,29 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
sourceType: "module", | ||
project: "./tsconfig.json", | ||
}, | ||
plugins: ["@typescript-eslint", "import"], | ||
settings: {}, | ||
env: { | ||
node: true, | ||
}, | ||
rules: { | ||
"import/no-duplicates": "error", | ||
"no-unneeded-ternary": ["error", { defaultAssignment: false }], | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"init-declarations": ["error", "always"], | ||
"no-lonely-if": "error", | ||
"object-shorthand": ["error", "always"], | ||
"@typescript-eslint/consistent-type-assertions": [ | ||
"error", | ||
{ | ||
assertionStyle: "never", | ||
}, | ||
], | ||
eqeqeq: ["error", "smart"], | ||
}, | ||
} |
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,8 @@ | ||
build/ | ||
node_modules/ | ||
coverage/ | ||
.venv/ | ||
.mypy_cache/ | ||
.terraform/ | ||
.pytest_cache/ | ||
target/ |
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,5 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
./node_modules/.bin/eslint 'js/*.js' |
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,5 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
./node_modules/.bin/prettier --check '**/*.{js,md,yml,json}' |
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,5 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
./node_modules/.bin/tsc --noEmit --project tsconfig.json |
Oops, something went wrong.