Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update deps #11

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/four-bananas-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'prettier-plugin-zh': minor
'core': minor
---

update prettier to 3.1.0
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

10 changes: 5 additions & 5 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
"start": "next start"
},
"dependencies": {
"next": "^14.0.1",
"next": "^14.0.3",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20.8.10",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/node": "^20.10.0",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"autoprefixer": "^10.4.16",
"eslint-plugin-next": "",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2"
"typescript": "^5.3.2"
}
}
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import pluginNext from '@next/eslint-plugin-next'
import nnecec from '@nnecec/eslint-config'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
...nnecec({
typescript: true,
}),
{
plugins: {
'@next/next': pluginNext,
},
rules: {
...pluginNext.configs['core-web-vitals'].rules,
},
settings: {
next: {
rootDir: ['apps/*/'],
},
},
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
]
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"@changesets/cli": "^2.26.2"
},
"devDependencies": {
"@nnecec/eslint-config": "^0.6.2",
"@nnecec/prettier-config": "^0.3.1",
"@turbo/gen": "^1.10.13",
"eslint": "^8.47.0",
"prettier": "^3.0.2",
"@nnecec/eslint-config": "^0.7.5",
"@nnecec/prettier-config": "^0.3.2",
"@turbo/gen": "^1.10.16",
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"prettier-plugin-zh": "workspace:*",
"turbo": "^1.10.13"
"turbo": "^1.10.16"
},
"packageManager": "[email protected]"
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"test": "echo \"Error: no test specified\" && exit 0"
},
"devDependencies": {
"@nnecec/tsconfig": "^0.1.6",
"tsup": "^7.2.0"
"@nnecec/tsconfig": "^0.2.1",
"tsup": "^8.0.1"
},
"publishConfig": {
"access": "restricted"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/rules/space-around-block.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function spaceAroundBlock(prevText?: string, nextText?: string) {
return [prevText && `${prevText} `, nextText && ` ${nextText}`] as [typeof prevText, typeof nextText]
return [prevText && `${prevText} `, nextText && ` ${nextText}`] as const
}

export const spaceAroundCode: typeof spaceAroundBlock = (prevText, nextText) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-zh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"test": "echo \"Error: no test specified\" && exit 0"
},
"devDependencies": {
"eslint": "^8.52.0"
"eslint": "^8.54.0"
},
"peerDependencies": {
"eslint": ">=8.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/prettier-plugin-zh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"test": "echo \"Error: no test specified\" && exit 0"
},
"devDependencies": {
"@nnecec/tsconfig": "^0.1.6",
"@nnecec/tsconfig": "^0.2.1",
"core": "workspace:*",
"prettier": "^3.0.3",
"tsup": "^7.2.0"
"prettier": "^3.1.0",
"tsup": "^8.0.1"
},
"peerDependencies": {
"prettier": ">=3.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ module.exports = {
noSpaceBetweenNumberUnit: defaultUnits,
plugins: ['prettier-plugin-zh'],
spaceAroundLink: true,
spaceAroundCode: true,
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
test space-`around`-code-[baidu](www.baidu.com)点击去百度 baidu

查看 Awesome Vite 仓库的[社区维护模板](https://github.com/vitejs/awesome-vite#templates),里面包含各种工具和不同框架的模板。

我喜欢`Roboto Mono`, `Monaspace`字体
Loading
Loading