diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..19887a17d --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +examples/**/*.ts +tests/*/expected/**/*.ts +tests/*/generated/**/*.ts +*.md +*.yaml +*.yml diff --git a/jest.config.js b/jest.config.js index 4a5b465ec..a93551fca 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,4 @@ module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', + preset: "ts-jest", + testEnvironment: "node", }; diff --git a/package.json b/package.json index f781afebe..2cecc1b61 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "scripts": { "build": "pika-pack build", "deploy": "npm run build && pika publish", + "format": "yarn prettier -w .", "lint": "eslint --ignore-path .gitignore --ext .js,.ts src", "pregenerate": "npm run build", "test": "npm run build && jest",