-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 🤖 add linters and fix misleading docs
add linters and fix misleading docs
- Loading branch information
tal
authored and
tal
committed
Nov 9, 2023
1 parent
ebeffc8
commit 4cfdc61
Showing
19 changed files
with
1,460 additions
and
541 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,21 +8,6 @@ permissions: | |
contents: read | ||
|
||
jobs: | ||
depcheck: | ||
name: Depcheck | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Node environment | ||
uses: Exlint/[email protected] | ||
with: | ||
node-version: 18.18.2 | ||
package-manager: pnpm | ||
package-manager-version: 8.10.0 | ||
|
||
- name: Test Depcheck | ||
run: pnpm depcheck | ||
|
||
inflint: | ||
name: Inflint | ||
|
||
|
@@ -86,6 +71,36 @@ jobs: | |
- name: Test ESLint | ||
run: pnpm lint | ||
|
||
knip: | ||
name: Knip | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Node environment | ||
uses: Exlint/[email protected] | ||
with: | ||
node-version: 20.9.0 | ||
package-manager: pnpm | ||
package-manager-version: 8.10.2 | ||
|
||
- name: Knip | ||
run: pnpm knip | ||
|
||
cspell: | ||
name: CSpell | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Node environment | ||
uses: Exlint/[email protected] | ||
with: | ||
node-version: 20.9.0 | ||
package-manager: pnpm | ||
package-manager-version: 8.10.2 | ||
|
||
- name: CSpell | ||
run: pnpm cspell | ||
|
||
build: | ||
name: Build | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm depcheck && pnpm exec lint-staged | ||
pnpm knip && pnpm exec lint-staged |
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
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,24 @@ | ||
{ | ||
"language": "en", | ||
"ignorePaths": ["./pnpm-lock.yaml", "./renovate.json", "./CHANGELOG.md"], | ||
"words": [ | ||
"inflintrc", | ||
"ICLI", | ||
"inflint", | ||
"inflintignore", | ||
"nocase", | ||
"exlint", | ||
"rofe", | ||
"kebabcase", | ||
"pointcase", | ||
"screamingsnakecase", | ||
"snakecase", | ||
"pascalcase", | ||
"camelcase", | ||
"knip", | ||
"czvinyl", | ||
"setdev", | ||
"esbenp", | ||
"foxundermoon" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@2/schema.json", | ||
"entry": "./src/index.ts", | ||
"project": ["./src/**/*"], | ||
"webpack": false, | ||
"ignoreDependencies": [ | ||
"@types/webpack-node-externals", | ||
"commitizen", | ||
"rimraf", | ||
"ts-loader", | ||
"tsconfig-paths-webpack-plugin", | ||
"webpack-node-externals", | ||
"webpack-shell-plugin-next" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const config = { | ||
'./**/*.ts': ['eslint --fix -c ./.eslintrc.cjs', () => 'tsc --noEmit'], | ||
'./**/*.{ts,js,json}': 'prettier --write -c ./.prettierrc.cjs', | ||
'./**/*': 'inflint -c ./inflint.config.cjs', | ||
'./**/*.{ts,js,json,yaml}': 'prettier --write -c ./.prettierrc.cjs', | ||
'./**/*': ['inflint -c ./inflint.config.cjs', 'cspell lint -c ./cspell.json --no-progress --no-summary'], | ||
}; | ||
|
||
module.exports = config; |
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
Oops, something went wrong.