-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to antfu eslint config and drop prettier
- Loading branch information
Showing
20 changed files
with
1,128 additions
and
211 deletions.
There are no files selected for viewing
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
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
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,3 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu() |
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
{ | ||
"name": "fontaine", | ||
"type": "module", | ||
"version": "0.4.1", | ||
"packageManager": "[email protected]", | ||
"description": "Automatic font fallback based on font metrics", | ||
"author": { | ||
"name": "Daniel Roe <[email protected]>", | ||
"url": "https://github.com/danielroe" | ||
}, | ||
"license": "MIT", | ||
"repository": "unjs/fontaine", | ||
"keywords": [ | ||
"fonts", | ||
"cls", | ||
"web-vitals", | ||
"performance" | ||
], | ||
"author": { | ||
"name": "Daniel Roe <[email protected]>", | ||
"url": "https://github.com/danielroe" | ||
}, | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
|
@@ -33,12 +34,8 @@ | |
"dev": "vitest", | ||
"demo": "vite dev playground", | ||
"demo:dev": "pnpm demo --config test/vite.config.mjs", | ||
"lint": "pnpm lint:all:eslint && pnpm lint:all:prettier", | ||
"lint:all:eslint": "pnpm lint:eslint --ext .ts,.js,.mjs,.cjs .", | ||
"lint:all:prettier": "pnpm lint:prettier \"{src,test}/**/*.{js,json,ts}\"", | ||
"lint:eslint": "eslint --fix", | ||
"lint:prettier": "prettier --write --log-level warn", | ||
"prepare": "husky install && pnpm build", | ||
"lint": "eslint --fix .", | ||
"prepare": "simple-git-hooks install && pnpm build", | ||
"prepublishOnly": "pnpm lint && pnpm test", | ||
"release": "pnpm test && bumpp && npm publish", | ||
"test": "vitest run" | ||
|
@@ -53,6 +50,7 @@ | |
"unplugin": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.8.0", | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
"@types/node": "20.11.25", | ||
"@types/serve-handler": "6.1.4", | ||
|
@@ -65,10 +63,10 @@ | |
"eslint-plugin-prettier": "latest", | ||
"execa": "8.0.1", | ||
"get-port-please": "3.1.2", | ||
"husky": "latest", | ||
"lint-staged": "15.2.2", | ||
"prettier": "latest", | ||
"serve-handler": "6.1.5", | ||
"simple-git-hooks": "^2.10.0", | ||
"typescript": "5.4.2", | ||
"unbuild": "latest", | ||
"vite": "5.1.5", | ||
|
@@ -77,5 +75,12 @@ | |
"resolutions": { | ||
"fontaine": "link:." | ||
}, | ||
"packageManager": "[email protected]" | ||
"simple-git-hooks": { | ||
"pre-commit": "npx lint-staged" | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts,mjs,cjs,json,.*rc}": [ | ||
"pnpm eslint --fix" | ||
] | ||
} | ||
} |
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
Oops, something went wrong.