Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: move all eslint-related stuff to main repo#875

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
haoqunjiang wants to merge208 commits intovuejs:main
base:main
Choose a base branch
Loading
fromhaoqunjiang:feat/eslint-and-oxlint-config
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
208 commits
Select commitHold shift + click to select a range
db4eb83
Initial commit
haoqunjiangJul 22, 2022
c00d40d
chore: scaffold the package
haoqunjiangAug 16, 2022
847d7ca
docs: use lower-case `npm`
haoqunjiangAug 16, 2022
82c721c
refactor: switch to ESM
haoqunjiangAug 17, 2022
181396b
feat: initial implementation
haoqunjiangAug 19, 2022
846aac7
fix: replace Object.assign with deepMerge
haoqunjiangAug 19, 2022
e4add77
fix: fix requireInCwd
haoqunjiangAug 19, 2022
9b41014
chore: add a todo about Vue CLI project warnings
haoqunjiangAug 19, 2022
0736e03
chore: output detected TypeScript info
haoqunjiangAug 19, 2022
6bd1c09
chore: rewording
haoqunjiangAug 19, 2022
d7a8849
chor: dim non-essential messages
haoqunjiangAug 19, 2022
1f00c35
0.1.0
haoqunjiangAug 19, 2022
f822d2d
refactor: use cjs modules instead of createRequire and fs.readFileSync
haoqunjiangAug 22, 2022
58c7140
fix: always create a prettierrc file when Prettier is used
haoqunjiangAug 23, 2022
3f8292e
0.1.1
haoqunjiangAug 24, 2022
7455652
fix: use default exports of CJS modules
haoqunjiangAug 24, 2022
4c9d69e
0.1.2
haoqunjiangAug 24, 2022
91bec61
fix: typo
haoqunjiangSep 5, 2022
747f8d6
0.1.3
haoqunjiangSep 5, 2022
2d17e0d
chore: update `@vue/eslint-config-typescript` to v11.0.2 (#2)
zhousgSep 23, 2022
5647b57
fix: create initial prettier config matching the content of the gener…
LinusBorgJan 26, 2023
a0a7457
refactor: put the default prettierrc into a separate file
haoqunjiangFeb 21, 2023
cf0bd48
refactor!: when prettier is used, don't format with eslint
haoqunjiangFeb 21, 2023
28d7e35
chore: Configure Renovate (#3)
renovate[bot]Feb 21, 2023
1ab12d4
chore(deps): update all non-major dependencies (#6)
renovate[bot]Feb 21, 2023
4d1cf18
chore: update typescript version
haoqunjiangFeb 21, 2023
e29e11b
fix: fix writing .prettierrc.json
haoqunjiangFeb 21, 2023
f0884f5
fix!: use import assertions to get prettierrcs
haoqunjiangFeb 21, 2023
ae26e5a
fix: prettier config must come after any other extends
haoqunjiangFeb 21, 2023
5394183
0.2.0
haoqunjiangFeb 21, 2023
0492c3b
chore: update deps
haoqunjiangApr 25, 2023
b68a1c1
0.2.1
haoqunjiangApr 25, 2023
78bc3d6
refactor: drop import assertions and inline prettierrcs
haoqunjiangJul 23, 2023
55abe4a
chore(deps): update all non-major dependencies (#8)
renovate[bot]Jul 23, 2023
8f38b03
chore(deps): update dependency prettier to v3 (#10)
renovate[bot]Jul 23, 2023
c3db167
chore(deps): update dependency @vue/eslint-config-prettier to v8 (#11)
renovate[bot]Jul 23, 2023
f14cdac
chore: update typescript
haoqunjiangJul 23, 2023
31d58e7
0.3.0
haoqunjiangJul 23, 2023
cab3fd7
fix: add shebang to the bin file
haoqunjiangJul 31, 2023
22b5de7
chore(deps): update all non-major dependencies (#12)
renovate[bot]Jul 31, 2023
91494d4
0.3.1
haoqunjiangJul 31, 2023
f4d9cd6
chore(deps): update all non-major dependencies (#13)
renovate[bot]Sep 14, 2023
e780b24
chore(deps): update dependency @vue/eslint-config-typescript to v12 (…
renovate[bot]Sep 14, 2023
71d349c
chore: add comments about Vue CLI todos
haoqunjiangSep 14, 2023
dad8475
0.3.2
haoqunjiangSep 14, 2023
f1b93f0
chore(deps): update dependency @vue/eslint-config-airbnb to v8 (#16)
renovate[bot]Jan 2, 2024
d99f0b4
chore(deps): update dependency @vue/eslint-config-airbnb-with-typescr…
renovate[bot]Jan 2, 2024
43cdf97
chore(deps): update dependency @vue/eslint-config-prettier to v9 (#18)
renovate[bot]Jan 2, 2024
81dbf98
chore(deps): update all non-major dependencies (#15)
renovate[bot]Jan 2, 2024
3499fe1
chore(deps): update dependency @vue/eslint-config-typescript to v13 (…
renovate[bot]Mar 11, 2024
c20c7cd
chore(deps): update all non-major dependencies (#19)
renovate[bot]Mar 11, 2024
49f258f
chore(deps): update all non-major dependencies (#22)
renovate[bot]Mar 20, 2024
305e1b3
0.3.3
haoqunjiangMar 20, 2024
9df38b7
chore(deps): update all non-major dependencies (#23)
renovate[bot]Apr 1, 2024
1d657db
feat!: initial flat config support
haoqunjiangOct 5, 2024
2eefee9
0.4.0
haoqunjiangOct 5, 2024
d1d859f
fix: global `ignores` needs to be in a separate object without any ot…
haoqunjiangOct 5, 2024
65170b6
0.4.1
haoqunjiangOct 5, 2024
a63e076
refactor: use js extension for eslint config (#28)
cexbrayatOct 11, 2024
9f4e10a
chore(deps): update all non-major dependencies (#26)
renovate[bot]Oct 11, 2024
3976533
0.4.2
haoqunjiangOct 11, 2024
2062797
chore: update typescript in a separate group instead of ignoring it
haoqunjiangOct 19, 2024
b31bfff
chore(deps): update all non-major dependencies (#29)
renovate[bot]Oct 19, 2024
ac2bfbc
chore(deps): update dependency typescript to ~5.6.0 (#30)
renovate[bot]Oct 19, 2024
046eeab
0.4.3
haoqunjiangOct 19, 2024
d1fe363
chore(deps): update all non-major dependencies (#32)
renovate[bot]Oct 23, 2024
5c93155
feat!: align the default prettier style with `create-vue` instead of …
haoqunjiangOct 25, 2024
2378e2f
refactor(config): Remove redundant options to align with schemastore …
Feb 17, 2024
2291947
0.5.0
haoqunjiangOct 25, 2024
086bdba
chore(deps): update all non-major dependencies (#34)
renovate[bot]Oct 28, 2024
37c4dcb
feat: add experimental oxlint support (#33)
haoqunjiangNov 4, 2024
5983d48
feat: also modify project scripts for easier setup
haoqunjiangNov 4, 2024
8a1fddd
chore: reorder lint commands to run oxlint first by default
haoqunjiangNov 4, 2024
551b8bc
feat: add TypeScript declaration file
haoqunjiangNov 4, 2024
02f16c3
fix(oxlint): should emit errors instead of warnings for correctness r…
haoqunjiangNov 4, 2024
b0ac07d
fix: should let the user confirm the detected result
haoqunjiangNov 4, 2024
cade01c
chore(deps): update all non-major dependencies (#35)
renovate[bot]Nov 4, 2024
d29101e
0.6.0
haoqunjiangNov 4, 2024
1f3e747
chore: add comments to explain the default format script
haoqunjiangNov 4, 2024
3da39e3
style: format
haoqunjiangNov 4, 2024
2ff7d38
chore: remove outdated TODO comments
haoqunjiangNov 5, 2024
298f241
fix: provide .gitignore to oxlint to avoid linting node_modules insta…
haoqunjiangNov 8, 2024
e1e5458
0.6.1
haoqunjiangNov 8, 2024
7fe208c
workflow: setup automated release with provenance
haoqunjiangNov 11, 2024
4ed74c9
fix: when using prettier, enforce line endings and max line length in…
haoqunjiangNov 11, 2024
37e0c62
chore(deps): update dependency typescript to ~5.7.0 (#40)
renovate[bot]Jan 9, 2025
0513ff5
chore(deps): update all non-major dependencies (#38)
renovate[bot]Jan 9, 2025
f8ff835
chore: rename the workflow to Publish to be consistent with other pro…
haoqunjiangJan 14, 2025
b3c65dd
chore: fix indentation
haoqunjiangJan 14, 2025
193923a
chore(deps): update all non-major dependencies (#41)
renovate[bot]Jan 14, 2025
3fbbc46
feat: use @vue/eslint-config-typescript 14.3 API & eslint.config.ts
haoqunjiangJan 14, 2025
3c0df25
fix: add .gitattributes to help with line endings, reducing Windows i…
haoqunjiangJan 14, 2025
c369a4b
0.7.0
haoqunjiangJan 14, 2025
1bac39b
style: no need to break the line with a printWidth of 100
haoqunjiangJan 16, 2025
7457b7e
0.7.1
haoqunjiangJan 16, 2025
1ce4518
docs: add a note about the `scriptLangs` config for TypeScript projects
haoqunjiangJan 20, 2025
3ec244a
0.7.2
haoqunjiangJan 20, 2025
5ffdb28
chore(deps): update all non-major dependencies (#42)
renovate[bot]Jan 20, 2025
8e49146
chore(deps): update all non-major dependencies (#43)
renovate[bot]Feb 5, 2025
7b39a14
chore(deps): update all non-major dependencies (#44)
renovate[bot]Feb 14, 2025
5c75dbc
chore: use Haoqun's renovate preset and move configuration to .github…
haoqunjiangFeb 14, 2025
bb517db
chore(deps): update dependency typescript to ~5.7.3 (#46)
renovate[bot]Feb 14, 2025
28030b0
0.7.3
haoqunjiangFeb 14, 2025
c54e1f0
chore(deps): update oxlint to ^0.15.12 (#47)
renovate[bot]Feb 24, 2025
79be99d
fix: spread the oxlint config
haoqunjiangFeb 24, 2025
30d34eb
chore(deps): update all non-major dependencies (#50)
renovate[bot]Feb 24, 2025
ab974c0
chore(deps): pin dependency prettier to v3.5.1 (#49)
renovate[bot]Feb 25, 2025
e07a55b
chore(deps): update dependency prettier to v3.5.2 (#51)
renovate[bot]Feb 25, 2025
cc4a919
feat: add css files in .editorconfig template (#48)
idmytroFeb 28, 2025
974114b
0.8.0
haoqunjiangFeb 28, 2025
568d0b4
chore(deps): update all non-major dependencies (#52)
renovate[bot]Mar 6, 2025
8a311c3
chore(deps): update oxlint to ^0.15.13 (#55)
renovate[bot]Mar 6, 2025
799f5ac
chore(deps): update dependency prettier to v3.5.3 (#53)
renovate[bot]Mar 6, 2025
4855d42
chore(deps): update dependency typescript to ~5.8.2 (#54)
renovate[bot]Mar 6, 2025
2de70bf
chore(deps): update dependency eslint-plugin-vue to v10 (#56)
renovate[bot]Mar 6, 2025
b899d91
feat: add globals to js config
haoqunjiangMar 7, 2025
a9c6de5
fixup! feat: add globals to js config
haoqunjiangMar 7, 2025
c84a9fe
0.9.0
haoqunjiangMar 7, 2025
76b4249
fix: add globals to the dependency list
haoqunjiangMar 7, 2025
f47890c
0.9.1
haoqunjiangMar 7, 2025
30af737
chore(deps): update all non-major dependencies (#57)
renovate[bot]Mar 13, 2025
e23389e
chore(deps): update oxlint to ^0.15.15 (#58)
renovate[bot]Mar 13, 2025
022afe3
feat: use `defineConfig` & `globalIgnores` helpers from ESLint 9.22
haoqunjiangMar 13, 2025
57fb33e
style: move globals import before plugins
haoqunjiangMar 13, 2025
f03fec0
style: rename oxlint to pluginOxlint for consistency
haoqunjiangMar 13, 2025
b979c50
0.10.0
haoqunjiangMar 13, 2025
1803c6e
style: move pluginVue after @vue/eslint-config-typescript
haoqunjiangMar 13, 2025
23bc045
chore(deps): update oxlint to ^0.16.0 (#59)
renovate[bot]Mar 17, 2025
30ac81f
0.10.1
haoqunjiangMar 17, 2025
8e666ca
chore(deps): update oxlint to ^0.16.2 (#60)
renovate[bot]Mar 24, 2025
95b2ba0
chore(deps): update all non-major dependencies (#61)
renovate[bot]Mar 24, 2025
92a26c5
chore(deps): update all non-major dependencies (#62)
renovate[bot]Apr 8, 2025
7c9d4e4
chore(deps): update oxlint to ^0.16.5 (#63)
renovate[bot]Apr 8, 2025
632b1c9
chore(deps): update dependency npm-run-all2 to v8 (#66)
renovate[bot]May 6, 2025
2895915
chore(deps): update v0.x to ^0.16.9 (#65)
renovate[bot]May 6, 2025
70af4a0
chore(deps): update all non-major dependencies (#64)
renovate[bot]May 6, 2025
74e9d6b
0.10.2
haoqunjiangMay 6, 2025
1a587d8
chore(deps): update all non-major dependencies (#67)
renovate[bot]Jun 11, 2025
1cb64f8
chore(deps): update oxlint to v1 (#70)
renovate[bot]Jun 11, 2025
579a9f8
fix: use tilde range for oxlint packages
haoqunjiangJun 11, 2025
2ecd3b7
0.11.0
haoqunjiangJun 11, 2025
a34c29f
chore(deps): update oxlint to ~1.1.0 (#72)
renovate[bot]Jun 17, 2025
4dffe48
chore(deps): update all non-major dependencies (#71)
renovate[bot]Jun 17, 2025
eb4da0e
0.11.1
haoqunjiangJun 17, 2025
54a70f8
chore(deps): update oxlint to ~1.5.0 (#73)
renovate[bot]Jul 2, 2025
5a61766
chore(deps): update dependency prettier to v3.6.2 (#75)
renovate[bot]Jul 2, 2025
0c59d25
chore(deps): update all non-major dependencies (#74)
renovate[bot]Jul 9, 2025
83e1ac4
0.11.2
haoqunjiangJul 9, 2025
42ee5b5
chore(deps): update oxlint to ~1.8.0 (#78)
renovate[bot]Jul 23, 2025
5989ea6
chore(deps): update all non-major dependencies (#77)
renovate[bot]Jul 23, 2025
3f4060f
0.11.3
haoqunjiangJul 23, 2025
92b1e61
chore: lockfile maintenance
haoqunjiangJul 23, 2025
c00d619
refactor: remove style-guide related code as we don't support this fe…
haoqunjiangJul 23, 2025
cfaba5d
feat: use `@prettier/plugin-oxc` when user selects Oxlint and Prettier
haoqunjiangJul 23, 2025
7ba941a
chore: cleanup the ESLint config for the project itself
haoqunjiangJul 23, 2025
cd6366c
0.12.0
haoqunjiangJul 23, 2025
7752376
chore(deps): update all non-major dependencies (#79)
renovate[bot]Aug 15, 2025
24027c0
chore(deps): update oxlint to ~1.11.0 (#81)
renovate[bot]Aug 15, 2025
828744b
chore(deps): update dependency typescript to ~5.9.0 (#80)
renovate[bot]Aug 15, 2025
d1142c4
ci: use trusted publisher for npm publish
haoqunjiangAug 15, 2025
244a08b
0.12.1
haoqunjiangAug 15, 2025
fbdf566
chore(deps): update all non-major dependencies (#82)
renovate[bot]Sep 8, 2025
2705229
chore(deps): update actions/checkout action to v5 (#84)
renovate[bot]Sep 8, 2025
0b25b8f
chore(deps): update oxlint to ~1.14.0 (#83)
renovate[bot]Sep 8, 2025
ccb9567
chore(deps): update actions/setup-node action to v5 (#85)
renovate[bot]Sep 8, 2025
92f151f
chore(deps): update all non-major dependencies (#86)
renovate[bot]Sep 30, 2025
43df76b
chore(deps): update oxlint to ~1.19.0 (#87)
renovate[bot]Sep 30, 2025
9e8a13f
0.12.2
haoqunjiangSep 30, 2025
47e0d54
chore(deps): update oxlint to ~1.23.0 (#89)
renovate[bot]Oct 14, 2025
bb6a2dd
chore(deps): update all non-major dependencies (#88)
renovate[bot]Oct 14, 2025
ea60e62
feat: add `cache` option (#90)
bteaOct 15, 2025
d9e661c
0.13.0
haoqunjiangOct 15, 2025
c1b7fe8
chore(deps): update actions/setup-node action to v6 (#92)
renovate[bot]Oct 20, 2025
d679f61
chore(deps): update all non-major dependencies (#91)
renovate[bot]Oct 20, 2025
b919ae0
chore(deps): update oxlint to ~1.29.0 (#95)
renovate[bot]Nov 19, 2025
73f8e05
chore(deps): update all non-major dependencies (#94)
renovate[bot]Nov 19, 2025
122f313
chore(deps): update dependency @prettier/plugin-oxc to ^0.0.5 (#96)
renovate[bot]Nov 19, 2025
18d29e5
0.13.1
haoqunjiangNov 19, 2025
052e65b
chore: lockfile maintenance
haoqunjiangNov 19, 2025
edca530
chore(deps): update dependency eslint-plugin-vue to ~10.6.1 (#97)
renovate[bot]Nov 27, 2025
c3440c9
chore(deps): update actions/checkout action to v6 (#98)
renovate[bot]Nov 27, 2025
2ece72a
chore(deps): update oxlint to ~1.31.0 (#102)
renovate[bot]Dec 2, 2025
b0459b9
chore(deps): update dependency @prettier/plugin-oxc to ^0.1.2 (#100)
renovate[bot]Dec 2, 2025
ecd72e7
chore(deps): update dependency eslint-plugin-vue to ~10.6.2 (#99)
renovate[bot]Dec 2, 2025
74861d9
chore(deps): update dependency prettier to v3.7.3 (#101)
renovate[bot]Dec 2, 2025
c81740b
chore: lockfile maintenance
haoqunjiangDec 2, 2025
8e41d52
0.13.2
haoqunjiangDec 2, 2025
413e344
chore(deps): update dependency @prettier/plugin-oxc to ^0.1.3 (#104)
renovate[bot]Dec 4, 2025
2d44eb3
chore(deps): update dependency prettier to v3.7.4 (#105)
renovate[bot]Dec 4, 2025
4421351
chore(deps): update oxlint to ~1.32.0 (#106)
renovate[bot]Dec 9, 2025
f0d3097
chore(deps): update dependency @types/node to ^22.19.2 (#107)
renovate[bot]Dec 9, 2025
2724ba4
0.13.3
haoqunjiangDec 9, 2025
375e213
feat: add oxfmt support (#103)
haoqunjiangDec 11, 2025
90866e7
0.14.0
haoqunjiangDec 11, 2025
0262d5b
fix: forgot to pass needsOxfmt to template
haoqunjiangDec 12, 2025
c274614
0.14.1
haoqunjiangDec 12, 2025
6096a8e
chore(deps): update all non-major dependencies (#108)
renovate[bot]Dec 17, 2025
4aa5fb1
chore(deps): update oxlint to ~1.33.0 (#110)
renovate[bot]Dec 17, 2025
e4d296d
chore(deps): update dependency oxfmt to ^0.18.0 (#109)
renovate[bot]Dec 17, 2025
856da4a
0.14.2
haoqunjiangDec 17, 2025
bc93a78
Add 'linters-and-formatters/' from commit '856da4a4c263373fcddd8cb2f5…
haoqunjiangDec 17, 2025
f22853d
feat: move all eslint-related stuff to main repo
haoqunjiangDec 18, 2025
c9c05b9
chore: update lockfile
haoqunjiangDec 18, 2025
f24dc8c
test: remove renderEslint.spec.ts
haoqunjiangDec 18, 2025
3f3d708
chore: adjust comment [skip ci]
haoqunjiangDec 18, 2025
4db6ade
fix: forgot to add trailing comma
haoqunjiangDec 18, 2025
9966eb4
feat: add default formatter settings for oxfmt in VSCode
haoqunjiangDec 19, 2025
c727a22
Merge branch 'main' into feat/eslint-and-oxlint-config
haoqunjiangDec 22, 2025
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.editorconfig
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
charset =utf-8
indent_size =2
indent_style =space
insert_final_newline =true
trim_trailing_whitespace =true
29 changes: 0 additions & 29 deletionsLICENSE
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -447,33 +447,4 @@ Repository: git://github.com/mde/ejs.git
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
>

## @vue/create-eslint-config

License: MIT
By: Haoqun Jiang
Repository: git+https://github.com/vuejs/create-eslint-config.git

> MIT License
>
> Copyright (c) 2022 vuejs
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.
>
106 changes: 0 additions & 106 deletions__test__/renderEslint.spec.ts
View file
Open in desktop

This file was deleted.

50 changes: 32 additions & 18 deletionsindex.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,6 @@ import {
import generateReadme from './utils/generateReadme'
import getCommand from './utils/getCommand'
import getLanguage from './utils/getLanguage'
import renderEslint from './utils/renderEslint'
import { trimBoilerplate, removeCSSImport, emptyRouterConfig } from './utils/trimBoilerplate'

import cliPackageJson from './package.json' with { type: 'json' }
Expand DownExpand Up@@ -511,25 +510,40 @@ async function init() {
}

// Render ESLint config
if (needsEslint || needsOxlint) {
renderEslint(root, {
needsTypeScript,
needsOxlint,
needsVitest,
needsCypress,
needsCypressCT,
needsPrettier,
needsPlaywright,
})
render('config/eslint')
}
if (needsEslint) {
render('linting/base')

if (needsOxlint) {
render('config/oxlint')
if (needsTypeScript) {
render('linting/core/ts')
} else {
render('linting/core/js')
}

if (needsCypress) {
render('linting/cypress')
}
if (needsCypressCT) {
render('linting/cypress-ct')
}
if (needsPlaywright) {
render('linting/playwright')
}
if (needsVitest) {
render('linting/vitest')
}

// These configs only disable rules, so they should be applied last.
if (needsPrettier) {
render('linting/prettier')
}
if (needsOxlint) {
render('linting/oxlint')
}
}

if (needsPrettier) {
render('config/prettier')
render('formatting/prettier')
// TODO: add oxfmt option in the next PR
}

// use rolldown-vite if the feature is enabled
Expand DownExpand Up@@ -615,7 +629,7 @@ async function init() {
root,
() => {},
(filepath) => {
if (filepath.endsWith('.js') && !filepath.endsWith('eslint.config.js')) {
if (filepath.endsWith('.js')) {
const tsFilePath = filepath.replace(/\.js$/, '.ts')
if (fs.existsSync(tsFilePath)) {
fs.unlinkSync(filepath)
Expand DownExpand Up@@ -694,7 +708,7 @@ async function init() {
if (!dotGitDirectoryState.hasDotGitDirectory) {
outroMessage += `
${dim('|')} ${language.infos.optionalGitCommand}

${bold(green('git init && git add -A && git commit -m "initial commit"'))}`
}

Expand Down
1 change: 0 additions & 1 deletionpackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,7 +45,6 @@
"@types/eslint": "^9.6.1",
"@types/node": "^24.10.4",
"@types/prompts": "^2.4.9",
"@vue/create-eslint-config": "^0.14.2",
"@vue/tsconfig": "^0.8.1",
"ejs": "^3.1.10",
"husky": "^9.1.7",
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp