ITADN

[BUG] Could not fix trailing comma in jsconfig.json file

#63ClosedAlkaidcc 创建于 2024-01-29
A
Alkaidcccommented
### Describe the bug How to reproduce the bug: 1. use `pnpm create vite` to create a vue+javascript project 2. pnpm add -D @sxzz/eslint-config eslint 3. add ```json { "eslint.experimental.useFlatConfig": true } ``` to `.vscode/settings.json` file 4. when I press `cmd + s` to save and fix my code, eslint can't fix trailing comma in jsconfig.json file, besides, I found out that eslint cant't fix `App.vue` as well. However it's working for `HelloWorld.vue`. It's so weird! I can't find out the reason 😢 If you need more help information, I'm glad to help debug. ### Reproduction https://github.com/Alkaidcc/js-repro ### System Info ```Shell System: OS: macOS 14.2.1 CPU: (8) arm64 Apple M2 Memory: 58.58 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.11.0 - ~/Library/Caches/fnm_multishells/9789_1706523927230/bin/node Yarn: 1.22.19 - ~/Library/pnpm/yarn npm: 10.2.4 - ~/Library/Caches/fnm_multishells/9789_1706523927230/bin/npm pnpm: 8.14.0 - ~/Library/pnpm/pnpm bun: 1.0.25 - /opt/homebrew/bin/bun Browsers: Chrome: 121.0.6167.85 Safari: 17.2.1 ``` ### Used Package Manager npm ### Validations - [X] Follow our [Code of Conduct](https://github.com/sxzz/.github/blob/main/CODE_OF_CONDUCT.md) - [X] Read the [Contributing Guide](https://github.com/sxzz/contribute). - [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. - [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. - [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
关闭于 2024-01-30 7 条评论