Skip to content

Commit

Permalink
docs: do not add --fix to lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Jan 3, 2023
1 parent 034a7ad commit 990a088
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/checkers/eslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@

2. Add `eslint` field to plugin config and `options.eslint.lintCommand` is required. The `lintCommand` is the same as the lint command of your project. The default root of the command uses Vite's [root](https://vitejs.dev/config/#root).

Do not add `--fix` to the lint command since the plugin is only aiming at check issues.

```js
// e.g.
export default {
plugins: [
checker({
eslint: {
lintCommand: 'eslint "./src/**/*.{ts,tsx}"', // for example, lint .ts & .tsx
// for example, lint .ts and .tsx
lintCommand: 'eslint "./src/**/*.{ts,tsx}"',
},
}),
],
Expand Down
5 changes: 4 additions & 1 deletion docs/checkers/stylelint.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@

2. Add `stylelint` field to plugin config and `options.stylelint.lintCommand` is required. The `lintCommand` is the same as the lint command of your project. The default root of the command uses Vite's [root](https://vitejs.dev/config/#root).

Do not add `--fix` to the lint command since the plugin is only aiming at check issues.

```js
// e.g.
export default {
plugins: [
checker({
stylelint: {
lintCommand: 'stylelint ./src/**/*.{css,vue}', // for example, lint .css & .vue
// for example, lint .css and .vue
lintCommand: 'stylelint ./src/**/*.{css,vue}',
},
}),
],
Expand Down

0 comments on commit 990a088

Please sign in to comment.