Skip to content

Commit c7431c6

Browse files
committed
Added configuration for prettier
1 parent 32e66a0 commit c7431c6

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

Diff for: .eslintrc.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ module.exports = {
33
env: {
44
node: true
55
},
6-
'extends': [
7-
'plugin:vue/essential',
8-
'@vue/prettier'
6+
extends: [
7+
"plugin:vue/essential",
8+
"plugin:prettier/recommended",
9+
"@vue/prettier"
910
],
1011
rules: {
11-
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
12+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
13+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
1314
},
1415
parserOptions: {
15-
parser: 'babel-eslint'
16+
parser: "babel-eslint"
1617
}
17-
}
18+
};

Diff for: .prettierrc.js

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

Diff for: README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# real-world-vue
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```

0 commit comments

Comments
 (0)