Skip to content

Commit

Permalink
chore(deps): update dependency @jenssimon/eslint-config-base to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and jenssimon committed Jan 5, 2025
1 parent 42edc28 commit 298da0b
Show file tree
Hide file tree
Showing 7 changed files with 1,993 additions and 2,409 deletions.
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'] }
45 changes: 45 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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
const __filename = fileURLToPath(import.meta.url) // eslint-disable-line no-underscore-dangle
const __dirname = path.dirname(__filename) // eslint-disable-line no-underscore-dangle

const compat = new FlatCompat({
baseDirectory: __dirname,
})


export default [
{
ignores: [
'.yarn/',
'.yalc/',
],
},

...fixupConfigRules(compat.config({
extends: [
'@jenssimon/base',
],
})).map((rule) => ({
files: [
'**/*.js',
'**/*.mjs',
],
...rule,
})),

{
files: [
'**/*.js',
],
rules: {
'unicorn/prefer-module': 'off',
},
},
]
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const sfccGlobals = require('./sfccGlobals')
const sfccGlobals = require('./sfcc-globals')

module.exports = {
parser: '@babel/eslint-parser',
Expand Down
File renamed without changes.
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"/lib/"
],
"scripts": {
"lint": "eslint --ext .js,.ts,.cjs,.mjs,.cts,.mts ./",
"lint": "eslint ./",
"commit": "cz",
"postinstall": "husky",
"prepack": "pinst --disable",
Expand All @@ -43,13 +43,14 @@
"devDependencies": {
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@jenssimon/eslint-config-base": "^7.3.17",
"@eslint/compat": "^1.2.4",
"@eslint/eslintrc": "^3.2.0",
"@jenssimon/eslint-config-base": "^8.0.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.56.0",
"husky": "^9.0.6",
"lint-staged": "^15.2.0",
"npm-run-all2": "^7.0.0",
"pinst": "^3.0.0",
"semantic-release": "^24.0.0"
},
Expand All @@ -59,16 +60,8 @@
"path": "./node_modules/cz-conventional-changelog"
}
},
"eslintConfig": {
"extends": [
"@jenssimon/base"
],
"rules": {
"unicorn/prefer-module": "off"
}
},
"lint-staged": {
"**/*.{js,ts}": "eslint"
"**/*.{js,mjs}": "eslint"
},
"release": {
"branches": [
Expand Down
Loading

0 comments on commit 298da0b

Please sign in to comment.