Skip to content

Commit aafeacd

Browse files
committed
Move config files
1 parent 8b9d51e commit aafeacd

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.huskyrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged"
4+
}
5+
}

.lintstagedrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"*.json": ["sort-json", "git add"],
3+
"*.{js,json,md}": ["prettier --write", "git add"],
4+
"*.{js}": ["import-sort --write", "git add"],
5+
"*package.json": ["prettier-package-json --write", "git add"]
6+
}
File renamed without changes.

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "react-native-version",
3-
"description":
4-
"Version your React Native or Expo app in a `npm version` fashion.",
3+
"description": "Version your React Native or Expo app in a `npm version` fashion.",
54
"license": "MIT",
65
"author": "Martin Stovicek",
76
"homepage": "https://github.com/stovmascript/react-native-version#readme",
@@ -18,7 +17,6 @@
1817
"react-native-version": "cli.js"
1918
},
2019
"scripts": {
21-
"precommit": "lint-staged",
2220
"docs": "./docs.sh",
2321
"test": "./test.sh"
2422
},
@@ -72,11 +70,5 @@
7270
"version",
7371
"versionCode",
7472
"versionName"
75-
],
76-
"lint-staged": {
77-
"*.json": ["sort-json", "git add"],
78-
"*.{js,json,md}": ["prettier --write", "git add"],
79-
"*.{js}": ["import-sort --write", "git add"],
80-
"*package.json": ["prettier-package-json --write", "git add"]
81-
}
73+
]
8274
}

0 commit comments

Comments
 (0)