Skip to content

Commit f6d28b8

Browse files
authored
Feat: Enforce node engine 14.17+ & yarn 1.22+ and types checking on lint script (#155)
1 parent f278bff commit f6d28b8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
"private": true,
44
"version": "1.0.0",
55
"description": "Opinionated UI starter with ⚛️ React, ⚡️ Chakra UI, ⚛️ React Query & 🐜 Formiz — From the 🐻 BearStudio Team",
6+
"engines": {
7+
"node": ">=14.17",
8+
"npm": "please-use-yarn",
9+
"yarn": ">=1.22"
10+
},
611
"scripts": {
712
"prepare": "husky install",
813
"test": "jest --roots src --watch",
914
"dev": "yarn docs:build && next dev",
1015
"build": "yarn docs:build && next build",
1116
"start": "next start",
1217
"pretty": "prettier -w .",
13-
"lint": "eslint ./src --fix",
18+
"lint": "eslint ./src --fix && tsc --noEmit",
1419
"storybook": "start-storybook -p 6006",
1520
"storybook:build": "build-storybook && mv ./storybook-static ./public/storybook",
1621
"static:build": "yarn build && next export",
@@ -19,7 +24,7 @@
1924
},
2025
"lint-staged": {
2126
"*.{ts,tsx,js,jsx,json}": "prettier --write",
22-
"*.{ts,tsx,js,jsx}": "eslint --cache --fix",
27+
"*.{ts,tsx,js,jsx}": "eslint --cache --fix && tsc --noEmit",
2328
"src/mocks/**/*.{yaml,yml}": "yarn docs:build"
2429
},
2530
"dependencies": {

0 commit comments

Comments
 (0)