mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore(Prettier): add settings for prettier plugin (#4756)
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
74763ef3fb
commit
b48b782c87
11
package.json
11
package.json
@@ -22,7 +22,7 @@
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix",
|
||||
"lint:typings": "tslint typings/index.d.ts",
|
||||
"prettier": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid src/**/*.js typings/**/*.ts",
|
||||
"prettier": "prettier --write src/**/*.js typings/**/*.ts",
|
||||
"build:browser": "webpack",
|
||||
"prepublishOnly": "npm run test && cross-env NODE_ENV=production npm run build:browser"
|
||||
},
|
||||
@@ -122,7 +122,7 @@
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": "eslint --fix",
|
||||
"*.ts": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid"
|
||||
"*.ts": "prettier --write"
|
||||
},
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
@@ -152,5 +152,12 @@
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"prettier":{
|
||||
"singleQuote": true,
|
||||
"printWidth": 120,
|
||||
"trailingComma": "all",
|
||||
"endOfLine": "lf",
|
||||
"arrowParens": "avoid"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user