Skip to content

Commit 3462bae

Browse files
chore: enable husky as it is great for automatic release notes
1 parent 42df988 commit 3462bae

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
"<rootDir>/lib/"
8787
]
8888
},
89+
"husky": {
90+
"hooks": {
91+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
92+
"pre-commit": "yarn lint && yarn typescript"
93+
}
94+
},
8995
"commitlint": {
9096
"extends": [
9197
"@commitlint/config-conventional"
@@ -129,7 +135,8 @@
129135
},
130136
"eslintIgnore": [
131137
"node_modules/",
132-
"lib/"
138+
"lib/",
139+
"example/"
133140
],
134141
"prettier": {
135142
"quoteProps": "consistent",

src/Date/CalendarEdit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function CalendarInputPure(
135135
day: '2-digit',
136136
year: 'numeric',
137137
})
138-
}, [])
138+
}, [locale])
139139

140140
const inputFormat = React.useMemo(() => {
141141
// TODO: something cleaner and more universal?

src/Date/DatePickerModalContentHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function HeaderContentSingle({
8989
month: 'short',
9090
day: 'numeric',
9191
})
92-
}, [])
92+
}, [locale])
9393

9494
return (
9595
<Text style={[styles.singleHeaderText, { color: dateColor }]}>

src/Date/DayNames.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function DayNames({
3030
weekday: 'narrow',
3131
})
3232
return weekdays.map((date) => formatter.format(date))
33-
}, [])
33+
}, [locale])
3434

3535
return (
3636
<View

0 commit comments

Comments
 (0)