-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-config): upgrade to eslint v9 and flat config (close #9)
BREAKING CHANGE: upgrade to eslint v9 and flat config
- Loading branch information
Showing
28 changed files
with
5,435 additions
and
4,138 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ node_modules/ | |
|
||
# Log files | ||
*.log | ||
|
||
# Dist files | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import * as fs from 'node:fs' | ||
import * as path from 'node:path' | ||
import type { UserConfig } from '@commitlint/types' | ||
|
||
const packages = fs.readdirSync(path.resolve(__dirname, 'packages')) | ||
const scopes = packages.map((name) => name.replace(/-vuepress$/, '')) | ||
|
||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'scope-enum': [2, 'always', scopes], | ||
'footer-max-line-length': [0], | ||
}, | ||
} satisfies UserConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import process from 'node:process' | ||
import { env, vuepress } from 'eslint-config-vuepress' | ||
|
||
const shouldCheckTest = process.env.CHECK_TEST === 'true' || env.IS_EDITOR | ||
|
||
export default vuepress({ | ||
ignores: shouldCheckTest ? [] : ['test/**'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
{ | ||
"name": "@vuepress/configs", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"format": "prettier --write packages", | ||
"lint": "eslint packages && prettier --check packages", | ||
"lint:all": "eslint --ext .js,.ts,.vue .", | ||
"build": "pnpm -r run build", | ||
"clean": "pnpm -r run clean", | ||
"format": "prettier --write .", | ||
"lint": "eslint . && prettier --check .", | ||
"lint:test": "CHECK_TEST=true eslint test", | ||
"prepare": "husky", | ||
"release": "pnpm lint && lerna publish" | ||
"release": "pnpm release:check && pnpm release:publish", | ||
"release:check": "pnpm clean && pnpm build && pnpm lint", | ||
"release:publish": "lerna publish" | ||
}, | ||
"lint-staged": { | ||
"!(test)/**/*.(js)": [ | ||
|
@@ -18,19 +23,21 @@ | |
}, | ||
"prettier": "prettier-config-vuepress", | ||
"devDependencies": { | ||
"@commitlint/cli": "^19.2.1", | ||
"@commitlint/config-conventional": "^19.1.0", | ||
"@lerna-lite/cli": "^3.3.1", | ||
"@lerna-lite/publish": "^3.3.1", | ||
"eslint": "^8.57.0", | ||
"@commitlint/cli": "^19.4.0", | ||
"@commitlint/config-conventional": "^19.2.2", | ||
"@commitlint/types": "^19.0.3", | ||
"@lerna-lite/cli": "^3.8.0", | ||
"@lerna-lite/publish": "^3.8.0", | ||
"eslint": "^9.9.0", | ||
"eslint-config-vuepress": "workspace:*", | ||
"eslint-config-vuepress-typescript": "workspace:*", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"prettier": "^3.2.5", | ||
"husky": "^9.1.4", | ||
"lint-staged": "^15.2.9", | ||
"prettier": "^3.3.3", | ||
"prettier-config-vuepress": "workspace:*", | ||
"sort-package-json": "^2.8.0", | ||
"sort-package-json": "^2.10.0", | ||
"tsconfig-vuepress": "workspace:*", | ||
"typescript": "^5.4.3" | ||
} | ||
"typescript": "^5.5.4", | ||
"unbuild": "^2.0.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
240 changes: 0 additions & 240 deletions
240
packages/eslint-config-vuepress-typescript/CHANGELOG.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.