mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
style: forward-compatible prettier rules and cjs parser
This commit is contained in:
parent
d6d7086531
commit
2dee68ddee
@ -1,3 +1,2 @@
|
||||
**/.*
|
||||
coverage
|
||||
.github
|
||||
.nyc_output
|
||||
|
||||
14
package.json
14
package.json
@ -34,8 +34,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "is-ci || husky install",
|
||||
"pretest": "prettier --check . && eslint \"lib/**/*.js\" \"test/**/*.js\"",
|
||||
"prettier:fix": "prettier --write .",
|
||||
"pretest": "prettier --check \"**/*.*\" && eslint \"lib/**/*.js\" \"test/**/*.js\"",
|
||||
"prettier:fix": "prettier --write \"**/*.*\"",
|
||||
"test": "tap \"test/tap/**/*.js\" --cov --timeout=45",
|
||||
"typings": "tsc -p types/tsconfig.json"
|
||||
},
|
||||
@ -74,6 +74,16 @@
|
||||
"browser": {
|
||||
"os": false
|
||||
},
|
||||
"prettier": {
|
||||
"trailingComma": "es5",
|
||||
"arrowParens": "always",
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.cjs"],
|
||||
"options": { "parser": "typescript" }
|
||||
}
|
||||
]
|
||||
},
|
||||
"tap": {
|
||||
"check-coverage": true
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user