diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..1d89e6bbb --- /dev/null +++ b/.prettierignore @@ -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 diff --git a/package.json b/package.json index ab8cc8eec..261a0c1d0 100644 --- a/package.json +++ b/package.json @@ -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 \"/test/*.lint.js\" --no-verbose", "benchmark": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"/test/*.benchmark.js\" --runInBand", "cover": "yarn cover:init && yarn cover:all && yarn cover:report",