Skip to content

Commit

Permalink
.eslintrc.js: Use trailingComma: "es5" with Prettier
Browse files Browse the repository at this point in the history
This addresses prettier#3469
as outlined in prettier#3469 (comment)

The corresponding formatting changes will be done separately for
clarity's sake.
  • Loading branch information
josephfrazier committed Dec 14, 2017
1 parent 1ba144b commit 05b3385
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
module.exports = {
env: {
es6: true,
node: true
node: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
plugins: ["prettier", "react", "import"],
rules: {
curly: "error",
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: ["tests*/**", "scripts/**"] }
{ devDependencies: ["tests*/**", "scripts/**"] },
],
"no-console": "off",
"no-else-return": "error",
Expand All @@ -22,15 +22,15 @@ module.exports = {
"one-var": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prettier/prettier": "error",
"prettier/prettier": ["error", { trailingComma: "es5" }],
"react/no-deprecated": "off",
strict: "error",
"symbol-description": "error",
yoda: ["error", "never", { exceptRange: true }]
yoda: ["error", "never", { exceptRange: true }],
},
parserOptions: {
ecmaFeatures: {
jsx: true
}
}
jsx: true,
},
},
};

0 comments on commit 05b3385

Please sign in to comment.