Skip to content

Commit

Permalink
style: 格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Oct 22, 2022
1 parent b1c10ea commit 351a77b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ npm i -D dom-to-code

```ts
// vite.config.ts
import {defineConfig} from 'vite'
import { defineConfig } from 'vite'
import vue3 from '@vitejs/plugin-vue'
import {domToCodePlugin} from 'dom-to-code/vite'
import { domToCodePlugin } from 'dom-to-code/vite'

export default defineConfig({
plugins: [
Expand All @@ -64,7 +64,7 @@ Example: [`playgrounds/vite-vue3`](./playgrounds/vite-vue3/)

```ts
// vue.config.js
const {domToCodePlugin, domToCodeDevServerV4, domToCodeDevServerV5} = require('dom-to-code/webpack')
const { domToCodePlugin, domToCodeDevServerV4, domToCodeDevServerV5 } = require('dom-to-code/webpack')

module.exports = {
devServer: {
Expand Down Expand Up @@ -93,7 +93,7 @@ Example: [`playgrounds/webpack-vue2`](./playgrounds/webpack-vue2/)

```ts
// webpack.config.js
const {domToCodePlugin} = require('dom-to-code/webpack').default
const { domToCodePlugin } = require('dom-to-code/webpack').default
module.exports = {
/* ... */
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ module.exports = {
'*.{js,jsx,ts,tsx}': ['eslint --fix'],
'*.json': ['prettier --write'],
'*.vue': ['eslint --fix'],
'*.md': ['prettier --write'],
'*.md': ['eslint --fix'],
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"commit": "git add . &&git-cz",
"lint": "pnpm lint:es",
"lint:change": "lint-staged",
"lint:es": "eslint --fix . --ext .jsx,.js,.vue,.ts,.tsx",
"lint:es": "eslint --fix . --ext .jsx,.js,.vue,.ts,.tsx,.md",
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"release": "esno ./scripts/release.ts",
Expand Down

0 comments on commit 351a77b

Please sign in to comment.