Skip to content

Commit

Permalink
Update ESLint and Prettier config
Browse files Browse the repository at this point in the history
space-before-function-paren is incompatible with Prettier.
semi: true and singleQuote: false are the default for Prettier and do
not need to be set explicitly.
  • Loading branch information
friederbluemle committed Jan 20, 2023
1 parent b328437 commit 3d27ea0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const defaultSVGRConfig = {
}
};

module.exports.transform = async({ src, filename, options }) => {
module.exports.transform = async ({ src, filename, options }) => {
if (filename.endsWith(".svg")) {
const config = await resolveConfig(resolveConfigDir(filename));
const svgrConfig = config
Expand Down
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
"eslintConfig": {
"extends": "standard",
"rules": {
"space-before-function-paren": [
2,
"never"
],
"semi": [
2,
"always"
Expand All @@ -64,8 +60,6 @@
}
},
"prettier": {
"semi": true,
"singleQuote": false,
"trailingComma": "none"
}
}

0 comments on commit 3d27ea0

Please sign in to comment.