mirror of
https://github.com/danbulant/discord.js
synced 2026-09-19 22:43:54 +00:00
chore(Prettier): add settings for prettier plugin (#4756)
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com>
This commit is contained in:
parent
74763ef3fb
commit
b48b782c87
1 changed files with 9 additions and 2 deletions
11
package.json
11
package.json
|
|
@ -22,7 +22,7 @@
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
"lint:fix": "eslint src --fix",
|
"lint:fix": "eslint src --fix",
|
||||||
"lint:typings": "tslint typings/index.d.ts",
|
"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",
|
"build:browser": "webpack",
|
||||||
"prepublishOnly": "npm run test && cross-env NODE_ENV=production npm run build:browser"
|
"prepublishOnly": "npm run test && cross-env NODE_ENV=production npm run build:browser"
|
||||||
},
|
},
|
||||||
|
|
@ -122,7 +122,7 @@
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.js": "eslint --fix",
|
"*.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": {
|
"commitlint": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
|
@ -152,5 +152,12 @@
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"prettier":{
|
||||||
|
"singleQuote": true,
|
||||||
|
"printWidth": 120,
|
||||||
|
"trailingComma": "all",
|
||||||
|
"endOfLine": "lf",
|
||||||
|
"arrowParens": "avoid"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue