Skip to content

Commit 8a74a15

Browse files
winniehelleddyerburgh
authored andcommitted
chore: use config file for Prettier (#1247)
1 parent 10ea249 commit 8a74a15

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: .prettierrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true
4+
}

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"lint": "eslint --ext js,vue . --ignore-path .gitignore",
1717
"lint:docs": "eslint --ext js,vue,md docs --ignore-path .gitignore",
1818
"lint:fix": "npm run lint -- --fix",
19-
"format": "prettier --single-quote --no-semi --write \"**/*.{js,json,vue,md}\"",
20-
"format:check": "prettier --single-quote --no-semi --check \"**/*.{js,json,vue,md}\"",
19+
"format": "prettier --write \"**/*.{js,json,vue,md}\"",
20+
"format:check": "prettier --check \"**/*.{js,json,vue,md}\"",
2121
"release": "npm run build && npm run test:unit:only && lerna publish --conventional-commits -m \"chore(release): publish %s\" --cd-version prerelease",
2222
"test": "npm run format:check && npm run lint && npm run lint:docs && npm run flow && npm run test:types && npm run test:unit && npm run test:unit:karma && npm run test:unit:node",
2323
"test:compat": "scripts/test-compat-all.sh",

0 commit comments

Comments
 (0)