Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eslint-config-standard #245

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
.DS_Store
.idea/
node_modules/
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
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"main": "index.js",
"repository": "https://github.com/kristerkari/react-native-svg-transformer",
"scripts": {
"release": "npmpub",
"lint": "eslint .",
"precommit": "lint-staged",
"test": "eslint ."
"release": "npmpub",
"test": "npm run lint"
},
"author": "Krister Kari",
"license": "MIT",
Expand All @@ -27,8 +28,9 @@
},
"devDependencies": {
"eslint": "^8.19.0",
"eslint-config-standard": "^15.0.1",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.17.0",
"eslint-plugin-n": "15.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-standard": "^5.0.0",
Expand All @@ -46,10 +48,6 @@
"eslintConfig": {
"extends": "standard",
"rules": {
"space-before-function-paren": [
2,
"never"
],
"semi": [
2,
"always"
Expand All @@ -62,8 +60,6 @@
}
},
"prettier": {
"semi": true,
"singleQuote": false,
"trailingComma": "none"
}
}
Loading