Skip to content

Commit

Permalink
Integrate and configure "eslint-plugin-prettier"
Browse files Browse the repository at this point in the history
To be fully compatible with ESLint (implemented in GH-15),
eslint-plugin-prettier (1) has been added to the plugins array of the
ESLint configuration. To enable full compatibility the
`prettier/prettier` rule has been added with the `error` level.

References:

  (1) https://www.npmjs.com/package/eslint-plugin-prettier

GH-16
  • Loading branch information
arcticicestudio committed Nov 17, 2018
1 parent 67ae0d9 commit ea89d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { resolve } = require("path");

module.exports = {
extends: "arcticicestudio",
plugins: ["babel"],
plugins: ["babel", "prettier"],
parser: "babel-eslint",
env: {
browser: true,
Expand All @@ -34,6 +34,7 @@ module.exports = {
}
},
rules: {
"prettier/prettier": "error",
"no-confusing-arrow": "off",
/* Suppress errors when importing development dependencies */
"import/no-extraneous-dependencies": ["error", { devDependencies: ["./.gatsby/**/*.js"] }],
Expand Down

0 comments on commit ea89d84

Please sign in to comment.