Skip to content

Commit

Permalink
enable strict but warn; ci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeexcoin committed Sep 10, 2024
1 parent 4b5ee7c commit 19bc1ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ jobs:
node-version: 20
registry-url: https://npm.pkg.github.com/

- run: pnpm lint:check
- run: pnpm prettier-check
- run: pnpm install
- run: pnpm build
4 changes: 4 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.stylistic,
...tseslint.configs.strict,
{
plugins: {
'simple-import-sort': eslintPluginSimpleImportSort
},
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-empty-object-type': 'warn',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unused-vars': [
'warn', // or "error"
Expand Down

0 comments on commit 19bc1ff

Please sign in to comment.