Skip to content

Commit e4cf1b7

Browse files
Update ESLint and Prettier config
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.
1 parent 6297e55 commit e4cf1b7

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const defaultSVGRConfig = {
2222
}
2323
};
2424

25-
module.exports.transform = async({ src, filename, options }) => {
25+
module.exports.transform = async ({ src, filename, options }) => {
2626
if (filename.endsWith(".svg")) {
2727
const config = await resolveConfig(resolveConfigDir(filename));
2828
const svgrConfig = config

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
"eslintConfig": {
4949
"extends": "standard",
5050
"rules": {
51-
"space-before-function-paren": [
52-
2,
53-
"never"
54-
],
5551
"semi": [
5652
2,
5753
"always"
@@ -64,8 +60,6 @@
6460
}
6561
},
6662
"prettier": {
67-
"semi": true,
68-
"singleQuote": false,
6963
"trailingComma": "none"
7064
}
7165
}

0 commit comments

Comments
 (0)