Skip to content

Commit

Permalink
chore(deps): update dependency @jenssimon/eslint-config-base to v8 (#109
Browse files Browse the repository at this point in the history
)

* chore(deps): update dependency @jenssimon/eslint-config-base to v8

* chore(deps): use flat config

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jens Simon <jens.simon80@googlemail.com>
  • Loading branch information
renovate[bot] and jenssimon authored Jan 4, 2025
1 parent 941bd66 commit 6919741
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 796 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ dist/
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.yalc/
yalc.lock
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] }
36 changes: 25 additions & 11 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'node:path'
import { fileURLToPath } from 'node:url'

import { FlatCompat } from '@eslint/eslintrc'
import { fixupConfigRules } from '@eslint/compat'


// mimic CommonJS variables -- not needed if using CommonJS
Expand All @@ -14,31 +15,44 @@ const compat = new FlatCompat({


export default [
...compat.config({
{
ignores: [
'.yarn/',
'.yalc/',
'dist/',
],
},

...fixupConfigRules(compat.config({
extends: [
'@jenssimon/eslint-config-base',
],
overrides: [
{
files: [
'commitlint.config.js',
parserOptions: {
project: './tsconfig.json',
},
extends: [
'@jenssimon/eslint-config-typescript',
],
files: ['*.ts'],
rules: {
'unicorn/prefer-module': 'off',
'@typescript-eslint/naming-convention': 'off',
},
},
],
}),
})).map((rule) => ({
files: [
'**/*.js',
'**/*.mjs',
'**/*.ts',
],
...rule,
})),
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
},
{
ignores: [
'.yarn/',
'dist/',
],
},
]
28 changes: 4 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"devDependencies": {
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@jenssimon/eslint-config-base": "^7.3.1",
"@eslint/compat": "^1.2.4",
"@eslint/eslintrc": "^3.2.0",
"@jenssimon/eslint-config-base": "^8.0.0",
"@jenssimon/eslint-config-typescript": "^5.2.2",
"@types/eslint": "^9.0.0",
"@types/node": "^22.0.0",
Expand All @@ -45,30 +47,8 @@
"peerDependencies": {
"eslint": ">=1.0.0"
},
"eslintConfig": {
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"@jenssimon/base",
"@jenssimon/typescript"
],
"rules": {
"@typescript-eslint/naming-convention": "off"
},
"overrides": [
{
"files": [
"commitlint.config.js"
],
"rules": {
"unicorn/prefer-module": "off"
}
}
]
},
"scripts": {
"lint": "eslint",
"lint": "eslint ./",
"build": "tsc",
"prepublishOnly": "tsc",
"commit": "cz",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"include": [
"src/**/*.ts",
"commitlint.config.js"
"commitlint.config.mjs",
"eslint.config.mjs"
],
"exclude": [
"node_modules",
Expand Down
Loading

0 comments on commit 6919741

Please sign in to comment.