Skip to content

Commit

Permalink
chore(deps): bump eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceanis committed Jan 24, 2025
1 parent 39fc091 commit 206e2a2
Show file tree
Hide file tree
Showing 6 changed files with 1,619 additions and 1,969 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: "Setup node with cache"
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'

- run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: "Setup node with cache"
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'

- run: yarn install --frozen-lockfile
Expand Down
39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import jest from 'eslint-plugin-jest'
import globals from 'globals'
import tsParser from '@typescript-eslint/parser'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'),
{
plugins: {
'@typescript-eslint': typescriptEslint,
jest,
},

languageOptions: {
globals: {
...globals.node,
...jest.environments.globals.globals,
},

parser: tsParser,
ecmaVersion: 2018,
sourceType: 'module',
},

rules: {},
},
]
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
},
"author": "Mike Xu",
"contributors": [
"Mircea Nistor <mircea.nistor@mesh.xyz>"
"Mircea Nistor"
],
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git@github.com:decentralized-identity/web-did-resolver.git"
},
"dependencies": {
"cross-fetch": "^4.0.0",
"did-resolver": "^4.0.0"
"cross-fetch": "^4.1.0",
"did-resolver": "^4.1.0"
},
"scripts": {
"test": "jest",
"test:ci": "jest --coverage",
"build": "microbundle --compress=false",
"format": "prettier --write \"src/**/*.[jt]s\"",
"lint": "eslint --ignore-pattern \"src/**/*.test.[jt]s\" \"src/**/*.[jt]s\"",
"lint": "eslint --ignore-pattern \"**/*.test.[m][jt]s\" \"src/**/*.[jt]s\"",
"prepublishOnly": "yarn test:ci && yarn format && yarn lint",
"release": "semantic-release --debug"
},
Expand All @@ -61,18 +61,19 @@
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"@types/jest": "29.5.14",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@typescript-eslint/eslint-plugin": "8.21.0",
"@typescript-eslint/parser": "8.21.0",
"babel-jest": "29.7.0",
"eslint": "8.57.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jest": "27.9.0",
"eslint": "9.18.0",
"eslint-config-prettier": "10.0.1",
"eslint-plugin-jest": "28.11.0",
"eslint-plugin-prettier": "5.2.3",
"jest": "29.7.0",
"microbundle": "0.15.1",
"prettier": "3.4.2",
"regenerator-runtime": "0.14.1",
"semantic-release": "22.0.12",
"semantic-release": "24.2.1",
"typescript": "5.7.3"
}
},
"packageManager": "yarn@1.22.22"
}
Loading

0 comments on commit 206e2a2

Please sign in to comment.