Skip to content
This repository was archived by the owner on Jul 26, 2026. It is now read-only.

Commit 0cdd947

Browse files
chore(deps): update dependency @jenssimon/eslint-config-base to v9 (#99)
* chore(deps): update dependency @jenssimon/eslint-config-base to v9 * fix: migrate to new version --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jens Simon <jens.simon80@googlemail.com>
1 parent 23b662c commit 0cdd947

3 files changed

Lines changed: 737 additions & 405 deletions

File tree

eslint.config.mjs

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,28 @@
1-
import path from 'node:path'
2-
import { fileURLToPath } from 'node:url'
1+
import { defineConfig } from 'eslint/config'
2+
import { configs } from '@jenssimon/eslint-config-base'
3+
import globals from 'globals'
34

4-
import { FlatCompat } from '@eslint/eslintrc'
5-
6-
7-
// mimic CommonJS variables -- not needed if using CommonJS
8-
const __filename = fileURLToPath(import.meta.url) // eslint-disable-line no-underscore-dangle
9-
const __dirname = path.dirname(__filename) // eslint-disable-line no-underscore-dangle
10-
11-
const compat = new FlatCompat({
12-
baseDirectory: __dirname,
13-
})
14-
15-
16-
export default [
5+
export default defineConfig(
176
{
187
ignores: [
198
'.yarn/',
209
'.yalc/',
2110
],
2211
},
2312

24-
...compat.config({
25-
extends: [
26-
'@jenssimon/base',
27-
],
28-
}).map((rule) => ({
29-
files: [
30-
'**/*.js',
31-
'**/*.mjs',
32-
],
33-
...rule,
34-
})),
13+
configs.base,
3514

3615
{
3716
files: [
3817
'**/*.js',
3918
],
19+
languageOptions: {
20+
globals: {
21+
...globals.node,
22+
},
23+
},
4024
rules: {
4125
'unicorn/prefer-module': 'off',
4226
},
4327
},
44-
]
28+
)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
"devDependencies": {
4343
"@commitlint/cli": "^19.0.0",
4444
"@commitlint/config-conventional": "^19.0.0",
45-
"@eslint/eslintrc": "^3.2.0",
46-
"@jenssimon/eslint-config-base": "^8.0.0",
45+
"@jenssimon/eslint-config-base": "^9.0.0",
4746
"commitizen": "^4.3.0",
4847
"cz-conventional-changelog": "^3.3.0",
4948
"eslint": "^9.18.0",
49+
"globals": "^16.4.0",
5050
"husky": "^9.0.6",
5151
"lint-staged": "^16.0.0",
5252
"pinst": "^3.0.0",

0 commit comments

Comments
 (0)