Skip to content

Commit

Permalink
Update npm packages, apply new eslint config and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Basssiiie committed Nov 18, 2024
1 parent 4f1354a commit 3a9a743
Show file tree
Hide file tree
Showing 46 changed files with 4,133 additions and 5,374 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

37 changes: 0 additions & 37 deletions .eslintrc.json

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.18
node-version: 20
- run: npm ci --prefer-offline --no-audit --no-save
- run: npm run lint

test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.18 # https://github.com/privatenumber/tsx/issues/354
node-version: 20
- run: npm ci --prefer-offline --no-audit --no-save
- run: npm run build
- run: npm run install:examples
Expand Down
Empty file removed app.js
Empty file.
35 changes: 35 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
ecmaVersion: 5,
projectService: true,
}
},
rules: {
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "angle-bracket" }],
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/restrict-template-expressions": ["warn", { allowArray: true, allowBoolean: true, allowNullish: true, allowNumber: true }],
"@typescript-eslint/triple-slash-reference": "off",
}
},
{
ignores: [
"**/dist/**",
"**/lib/**",
"**/tests/**",
"**/rollup.config.js",
"eslint.config.mjs"
]
}
);
Loading

0 comments on commit 3a9a743

Please sign in to comment.