Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 55f8e9d

Browse files
author
M-ZubairAhmed
committed
no semicolon rule removed from prettier
1 parent 4df9a6d commit 55f8e9d

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

package.json

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "xo",
8-
"lint": "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write --single-quote --print-width='80' --trailing-comma='all' && xo --fix",
8+
"lint":
9+
"prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write --single-quote --print-width='80' --trailing-comma='all' && xo --fix",
910
"precommit": "lint-staged",
1011
"analyze": "cross-env ANALYZE=1 next build",
1112
"dev": "cross-env NODE_ENV=development nodemon server.js -w server.js",
@@ -16,28 +17,19 @@
1617
},
1718
"xo": {
1819
"parser": "babel-eslint",
19-
"extends": [
20-
"prettier",
21-
"prettier/react",
22-
"plugin:react/recommended"
23-
],
24-
"env": [
25-
"browser",
26-
"node"
27-
],
20+
"extends": ["prettier", "prettier/react", "plugin:react/recommended"],
21+
"env": ["browser", "node"],
2822
"rules": {
2923
"linebreak-style": 0,
3024
"react/display-name": 0,
3125
"react/prop-types": 0
3226
},
3327
"space:": 2,
34-
"ignores": [
35-
"next.config.js"
36-
]
28+
"ignores": ["next.config.js"]
3729
},
3830
"lint-staged": {
3931
"*.js": [
40-
"prettier --write --single-quote --print-width=80 --trailing-comma=all --no-semi",
32+
"prettier --write --single-quote --print-width=80 --trailing-comma=all",
4133
"xo",
4234
"git add"
4335
]

0 commit comments

Comments
 (0)