Skip to content

Commit 2381a9f

Browse files
committed
Add Prettier config
1 parent 5efe597 commit 2381a9f

File tree

6 files changed

+716
-7
lines changed

6 files changed

+716
-7
lines changed

Diff for: .eslintrc.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ module.exports = {
1414
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
1515
extends: [
1616
'standard',
17-
'plugin:vue/recommended'
17+
'plugin:vue/recommended',
18+
'eslint:recommended',
19+
'prettier/vue',
20+
'plugin:prettier/recommended'
1821
],
1922
// required to lint *.vue files
2023
plugins: [

Diff for: .lintstagedrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"linters": {
3+
"*.js": [
4+
"eslint"
5+
],
6+
"**/*.+(js|jsx|json)": [
7+
"prettier --write",
8+
"git add"
9+
]
10+
}
11+
}

Diff for: .prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
coverage
3+
dist
4+
build
5+
.build
6+
.vscode

Diff for: .prettierrc.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
bracketSpacing: true,
3+
printWidth: 80,
4+
proseWrap: 'always',
5+
semi: false,
6+
singleQuote: true,
7+
tabWidth: 2,
8+
trailingComma: 'es5',
9+
useTabs: false,
10+
}

0 commit comments

Comments
 (0)