Skip to content

Commit

Permalink
feat: update deps, enable antfu/consistent-chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 4, 2024
1 parent 237cb5e commit d6dfc4e
Show file tree
Hide file tree
Showing 12 changed files with 438 additions and 476 deletions.
5 changes: 3 additions & 2 deletions fixtures/input/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ export function HelloWorld({
return null};

// TODO: Don't use random in render
let num = Math.floor (Math.random() * 1E+7).toString()
.replace(/\.\d+/ig, "")
let num = Math
.floor (Math.random() * 1E+7).toString()
.replace(/\.\d+/ig, "")

return <div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}>
<strong>{ greeting.slice( 0, 1 ).toUpperCase() + greeting.slice(1).toLowerCase() }</strong>
Expand Down
4 changes: 3 additions & 1 deletion fixtures/output/all/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function HelloWorld({
};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
const num = Math
.floor (Math.random() * 1e+7)
.toString()
.replace(/\.\d+/g, '')

return (
Expand Down
4 changes: 3 additions & 1 deletion fixtures/output/js/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function HelloWorld({
};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
const num = Math
.floor (Math.random() * 1e+7)
.toString()
.replace(/\.\d+/g, '')

return (
Expand Down
5 changes: 3 additions & 2 deletions fixtures/output/no-style/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ export function HelloWorld({
return null};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
.replace(/\.\d+/g, "")
const num = Math
.floor (Math.random() * 1e+7).toString()
.replace(/\.\d+/g, "")

return <div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}>
<strong>{ greeting.slice( 0, 1 ).toUpperCase() + greeting.slice(1).toLowerCase() }</strong>
Expand Down
4 changes: 3 additions & 1 deletion fixtures/output/tab-double-quotes/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function HelloWorld({
};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
const num = Math
.floor (Math.random() * 1e+7)
.toString()
.replace(/\.\d+/g, "")

return (
Expand Down
4 changes: 3 additions & 1 deletion fixtures/output/ts-override/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function HelloWorld({
};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
const num = Math
.floor (Math.random() * 1e+7)
.toString()
.replace(/\.\d+/g, '')

return (
Expand Down
4 changes: 3 additions & 1 deletion fixtures/output/ts-strict/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function HelloWorld({
};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
const num = Math
.floor (Math.random() * 1e+7)
.toString()
.replace(/\.\d+/g, '')

return (
Expand Down
4 changes: 3 additions & 1 deletion fixtures/output/with-formatters/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function HelloWorld({
};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
const num = Math
.floor (Math.random() * 1e+7)
.toString()
.replace(/\.\d+/g, '')

return (
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@
"@antfu/install-pkg": "^0.4.1",
"@clack/prompts": "^0.7.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@stylistic/eslint-plugin": "^2.6.5",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"@stylistic/eslint-plugin": "^2.7.2",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@vitest/eslint-plugin": "^1.1.0",
"eslint-config-flat-gitignore": "^0.3.0",
"eslint-flat-config-utils": "^0.3.1",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-antfu": "^2.3.6",
"eslint-plugin-antfu": "^2.4.1",
"eslint-plugin-command": "^0.2.3",
"eslint-plugin-import-x": "^4.1.0",
"eslint-plugin-import-x": "^4.1.1",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-markdown": "^5.1.0",
Expand All @@ -119,14 +119,14 @@
"eslint-plugin-toml": "^0.11.1",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^4.1.3",
"eslint-plugin-vue": "^9.27.0",
"eslint-plugin-vue": "^9.28.0",
"eslint-plugin-yml": "^1.14.0",
"eslint-processor-vue-blocks": "^0.1.2",
"globals": "^15.9.0",
"jsonc-eslint-parser": "^2.4.0",
"local-pkg": "^0.5.0",
"parse-gitignore": "^2.0.0",
"picocolors": "^1.0.1",
"picocolors": "^1.1.0",
"toml-eslint-parser": "^0.10.0",
"vue-eslint-parser": "^9.4.3",
"yaml-eslint-parser": "^1.2.3",
Expand All @@ -135,13 +135,13 @@
"devDependencies": {
"@antfu/eslint-config": "workspace:*",
"@antfu/ni": "^0.23.0",
"@eslint-react/eslint-plugin": "^1.12.3",
"@eslint-react/eslint-plugin": "^1.13.0",
"@eslint/config-inspector": "^0.5.4",
"@prettier/plugin-xml": "^3.4.1",
"@stylistic/eslint-plugin-migrate": "^2.6.5",
"@stylistic/eslint-plugin-migrate": "^2.7.2",
"@types/eslint": "^9.6.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.5.1",
"@types/node": "^22.5.3",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.33",
"@unocss/eslint-plugin": "^0.62.3",
Expand All @@ -160,7 +160,7 @@
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"jiti": "^1.21.6",
"lint-staged": "^15.2.9",
"lint-staged": "^15.2.10",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-slidev": "^1.0.5",
"rimraf": "^6.0.1",
Expand All @@ -171,11 +171,11 @@
"tsx": "^4.19.0",
"typescript": "^5.5.4",
"vitest": "^2.0.5",
"vue": "^3.4.38"
"vue": "^3.5.0"
},
"resolutions": {
"@eslint-community/eslint-utils": "^4.4.0",
"@typescript-eslint/utils": "^8.3.0",
"@typescript-eslint/utils": "^8.4.0",
"eslint": "^9.9.1",
"tsx": "^4.19.0"
},
Expand Down
Loading

0 comments on commit d6dfc4e

Please sign in to comment.