Skip to content

Commit

Permalink
add js and jsx extensions to configs
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyichen committed Oct 19, 2019
1 parent dce1d61 commit 977c6c5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"scripts": {
"dev:server": "ts-node --files --transpile-only --project ./tsconfig.server.json ./server/index.ts",
"dev": "npx nodemon --watch 'server/**/*.ts' --exec 'npm run dev:server'",
"lint": "eslint './**/*.{ts,tsx}'",
"lint:fix": "eslint './**/*.{ts,tsx}' --fix",
"lint": "eslint './**/*.{ts,tsx,js,jsx}'",
"lint:fix": "eslint './**/*.{ts,tsx,js,jsx}' --fix",
"next:build": "next build",
"nodemon": "npx nodemon",
"pretty": "prettier --write client/**/*.ts* server/**/*.ts",
Expand Down Expand Up @@ -75,7 +75,7 @@
"speccy": "^0.11.0"
},
"lint-staged": {
"*.{ts,tsx}": [
"*.{ts,tsx,js,jsx}": [
"npm run pretty",
"git add"
]
Expand All @@ -92,10 +92,11 @@
"moduleFileExtensions": [
"ts",
"tsx",
"js"
"js",
"jsx"
],
"testMatch": [
"/**/*.test.(ts|js|tsx)"
"/**/*.test.(ts|js|tsx|jsx)"
]
},
"prettier": {
Expand Down

0 comments on commit 977c6c5

Please sign in to comment.