Skip to content

Commit

Permalink
Move config files
Browse files Browse the repository at this point in the history
  • Loading branch information
stovmascript committed Feb 24, 2019
1 parent 8b9d51e commit aafeacd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged"
}
}
6 changes: 6 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.json": ["sort-json", "git add"],
"*.{js,json,md}": ["prettier --write", "git add"],
"*.{js}": ["import-sort --write", "git add"],
"*package.json": ["prettier-package-json --write", "git add"]
}
File renamed without changes.
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "react-native-version",
"description":
"Version your React Native or Expo app in a `npm version` fashion.",
"description": "Version your React Native or Expo app in a `npm version` fashion.",
"license": "MIT",
"author": "Martin Stovicek",
"homepage": "https://github.com/stovmascript/react-native-version#readme",
Expand All @@ -18,7 +17,6 @@
"react-native-version": "cli.js"
},
"scripts": {
"precommit": "lint-staged",
"docs": "./docs.sh",
"test": "./test.sh"
},
Expand Down Expand Up @@ -72,11 +70,5 @@
"version",
"versionCode",
"versionName"
],
"lint-staged": {
"*.json": ["sort-json", "git add"],
"*.{js,json,md}": ["prettier --write", "git add"],
"*.{js}": ["import-sort --write", "git add"],
"*package.json": ["prettier-package-json --write", "git add"]
}
]
}

0 comments on commit aafeacd

Please sign in to comment.