diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..612aa3c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,14 @@ +{ + "printWidth": 80, + "singleQuote": true, + "trailingComma": "all", + "semi": false, + "overrides": [ + { + "files": ".prettierrc", + "options": { + "parser": "json" + } + } + ] +} diff --git a/package-lock.json b/package-lock.json index b0f6096..bfcdc40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9788,6 +9788,12 @@ "dev": true, "optional": true }, + "prettier": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz", + "integrity": "sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==", + "dev": true + }, "private": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", diff --git a/package.json b/package.json index ba7ec40..cbee4f4 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "mocha": "^7.1.1", "mocha-lcov-reporter": "^1.3.0", "nyc": "^15.0.0", + "prettier": "2.1.2", "release-it": "^13.1.1", "webpack": "^4.41.5", "webpack-cli": "^3.3.10"