forked from suchipi/link-fixer-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: add separate tsc config for ci/release builds skip building src/util since it requires dev dependencies installed * fix: remove unused imports * feat (tsc): extend@tsconfig/node-lts * style: drop prettier for eslint * style (eslint): use airbnb and strict-type-checked * style: re-add prettier * pre-commit: clean up config
- Loading branch information
1 parent
c8ec3d1
commit 016ade3
Showing
24 changed files
with
3,028 additions
and
168 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,24 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/strict-type-checked', | ||
'airbnb-typescript/base' | ||
], | ||
plugins: [ | ||
'import', | ||
'@typescript-eslint' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.json' | ||
}, | ||
root: true, | ||
ignorePatterns: [ | ||
'*.js', | ||
'*.cjs', | ||
'dist/**' | ||
], | ||
rules: { | ||
'@typescript-eslint/quotes': 'off', | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- run: npm ci --ignore-scripts | ||
|
||
- run: npm run lint |
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 |
---|---|---|
@@ -1,5 +1,34 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.56.0 | ||
hooks: | ||
- id: eslint | ||
files: '^src/.*\.ts$' | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "@typescript-eslint/[email protected]" | ||
- "@typescript-eslint/[email protected]" | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v3.0.3" | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
files: '^src/.*\.ts$' | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
|
||
- repo: https://github.com/AleksaC/hadolint-py | ||
rev: v2.12.0.3 | ||
hooks: | ||
- id: hadolint | ||
name: check dockerfile | ||
|
||
- repo: https://github.com/iamthefij/docker-pre-commit | ||
rev: v3.0.1 | ||
hooks: | ||
- id: docker-compose-check | ||
name: check docker-compose | ||
files: (docker-)?compose(\..*)?\.ya?ml$ |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.