diff --git a/.prettierignore b/.prettierignore new file mode 120000 index 0000000..6200b3a --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +./.gitignore \ No newline at end of file diff --git a/package.json b/package.json index aabd007..5991b8a 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "build": "rollup --config", "build:dev": "cross-env NODE_ENV=development rollup --config", "dev": "cross-env NODE_ENV=development rollup --config --watch", - "lint": "eslint src/*.js", + "lint": "prettier --check . && eslint src/*.js", "release": "np", "size": "size-limit", "test": "pnpm run lint && pnpm run build && pnpm run size", @@ -52,6 +52,7 @@ "cssnano": "^5.0.16", "eslint": "^8.8.0", "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.4", "np": "^7.6.0", "postcss": "^8.4.6", @@ -59,6 +60,7 @@ "postcss-calc": "^8.2.3", "postcss-css-variables": "^0.18.0", "postcss-mixins": "^9.0.1", + "prettier": "^2.5.1", "rollup": "^2.67.0", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-terser": "^7.0.2",