Skip to content

Commit

Permalink
feat(cli): add eslint toml support
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Aug 13, 2024
1 parent bf73703 commit d72ae51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import consola from 'consola';
import { defu } from 'defu';
import fg from 'fast-glob';
import {
DefaultRenderer,
Listr,
type DefaultRenderer,
type ListrTaskWrapper,
SimpleRenderer,
type SimpleRenderer,
} from 'listr2';
import { isPackageExists } from 'local-pkg';
import sortObjectKeys from 'sort-object-keys';
Expand Down Expand Up @@ -166,9 +166,10 @@ export default eslint();
'json',
'jsonc',
'yaml',
'toml',
],
// JavaScript、JSX、TypeScript、TypeScript JSX、Vue、markdown、JSON、JSONC、YAML 手动保存后 ESLint 自动修复
'[javascript][javascriptreact][typescript][typescriptreact][vue][markdown][json][jsonc][yaml]':
// JavaScript、JSX、TypeScript、TypeScript JSX、Vue、markdown、JSON、JSONC、YAML、TOML 手动保存后 ESLint 自动修复
'[javascript][javascriptreact][typescript][typescriptreact][vue][markdown][json][jsonc][yaml][toml]':
{
'editor.codeActionsOnSave': {
'source.fixAll.eslint': 'explicit',
Expand Down

0 comments on commit d72ae51

Please sign in to comment.