GeezerVison is showing github.com — Merge pull request #7187 from byzyk/enhancement/prettierignore · webpack/webpack@b77addd
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +# Ignore all paths. |
| 2 | +**/*.* |
| 3 | + |
| 4 | +# Enable prettier for the following paths. |
| 5 | +!setup/**/*.js |
| 6 | +!lib/**/*.js |
| 7 | +!bin/*.js |
| 8 | +!hot/*.js |
| 9 | +!buildin/*.js |
| 10 | +!test/*.js |
| 11 | +!test/**/webpack.config.js |
| 12 | +!examples/**/webpack.config.js |
| 13 | +!schemas/**/*.js |
| 14 | +!declarations.d.ts |
Collapse file
Copy file name to clipboardExpand all lines: package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
118 | 118 | "code-lint": "eslint --cache setup lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"", |
119 | 119 | "type-lint": "tsc --pretty", |
120 | 120 | "fix": "yarn code-lint --fix", |
121 | | - "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", |
| 121 | + "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\"", |
122 | 122 | "schema-lint": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.lint.js\" --no-verbose", |
123 | 123 | "benchmark": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand", |
124 | 124 | "cover": "yarn cover:init && yarn cover:all && yarn cover:report", |
|