Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#125)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v9

* chore(dev-deps): eslint v9

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AriPerkkio <ari.perkkio@gmail.com>
  • Loading branch information
renovate[bot] and AriPerkkio committed Apr 21, 2024
1 parent e34c8fa commit 5755892
Show file tree
Hide file tree
Showing 6 changed files with 209 additions and 233 deletions.
39 changes: 0 additions & 39 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [16, 18]
node-version: [18, 20]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16, 18]
node-version: [18, 20]
example-name:
[
example-jest,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- name: Install & Build
Expand Down
41 changes: 41 additions & 0 deletions eslint.config.mjs
@@ -0,0 +1,41 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';

export default defineConfig([
js.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
globals: {
...globals.node,
...globals.jasmine,
},
},
},
{
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-empty-interface': 'off',
},
},
{
files: ['*.test.ts*'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
{ ignores: ['dist'] },
eslintPluginPrettierRecommended,
]);

/** @param config {import('eslint').Linter.FlatConfig} */
function defineConfig(config) {
return config;
}
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -44,7 +44,7 @@
"build": "rollup --config rollup.config.ts --configPlugin typescript",
"test": "vitest run",
"test:watch": "vitest watch",
"lint": "eslint . --max-warnings 0 --ext .js,.ts",
"lint": "eslint . --max-warnings 0",
"validate": "pnpm build && pnpm lint && pnpm test"
},
"repository": {
Expand All @@ -57,14 +57,14 @@
"aria-live-capture": "^1.0.2"
},
"devDependencies": {
"@eslint/js": "^9.1.1",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@vitest/expect": "^1.5.0",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"eslint": "^9.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"globals": "^15.0.0",
"jsdom": "^24.0.0",
"prettier": "^3.2.5",
"rollup": "^4.14.2",
Expand All @@ -73,6 +73,7 @@
"rollup-plugin-local-import": "^1.2.0",
"rollup-plugin-typescript": "^1.0.1",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.0",
"vitest": "^1.5.0"
},
"packageManager": "pnpm@8.15.7",
Expand Down

0 comments on commit 5755892

Please sign in to comment.