mirror of https://github.com/webpack/webpack.git
Merge pull request #7187 from byzyk/enhancement/prettierignore
enhancement: add .prettierignore file
This commit is contained in:
commit
b77addda16
|
|
@ -0,0 +1,14 @@
|
|||
# Ignore all paths.
|
||||
**/*.*
|
||||
|
||||
# Enable prettier for the following paths.
|
||||
!setup/**/*.js
|
||||
!lib/**/*.js
|
||||
!bin/*.js
|
||||
!hot/*.js
|
||||
!buildin/*.js
|
||||
!test/*.js
|
||||
!test/**/webpack.config.js
|
||||
!examples/**/webpack.config.js
|
||||
!schemas/**/*.js
|
||||
!declarations.d.ts
|
||||
|
|
@ -118,7 +118,7 @@
|
|||
"code-lint": "eslint --cache setup lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"",
|
||||
"type-lint": "tsc --pretty",
|
||||
"fix": "yarn code-lint --fix",
|
||||
"pretty": "prettier \"setup/**/*.js\" \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" \"declarations.d.ts\" --write",
|
||||
"pretty": "prettier --write \"setup/**/*.js\" \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" \"declarations.d.ts\"",
|
||||
"schema-lint": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.lint.js\" --no-verbose",
|
||||
"benchmark": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand",
|
||||
"cover": "yarn cover:init && yarn cover:all && yarn cover:report",
|
||||
|
|
|
|||
Loading…
Reference in New Issue