Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit eec02e1

Browse files
No more JS allowed (#193)
1 parent 10f178a commit eec02e1

File tree

2 files changed

+381
-607
lines changed

2 files changed

+381
-607
lines changed

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"format": "prettier-eslint --write --list-different \"./{lib,test,test-e2e}/**/*.{ts,js,json,md}\"",
1818
"precommit": "lint-staged",
1919
"np": "np --no-publish",
20-
"cz": "git-cz"
20+
"cz": "git-cz",
21+
"check-js": "if [[ $(git status -s | egrep '^(A|R)' | egrep 'jsx?\"?$' | wc -l | awk '{print $1}') > 0 ]] ; then exit 125; else echo 🎉 ; fi; echo"
2122
},
2223
"repository": {
2324
"type": "git",
@@ -99,7 +100,7 @@
99100
"karma-spec-reporter": "0.0.32",
100101
"karma-summary-reporter": "^1.8.0",
101102
"karma-typescript": "^5.1.0",
102-
"lint-staged": "^7.2.0",
103+
"lint-staged": "^10.2.13",
103104
"lodash": "^4.17.15",
104105
"mocha": "^2.2.5",
105106
"node-fetch": "^2.6.0",
@@ -115,12 +116,13 @@
115116
"watchify": "^3.7.0"
116117
},
117118
"lint-staged": {
118-
"linters": {
119-
"*.{js,json,md}": [
120-
"prettier-eslint --write",
121-
"git add"
122-
]
123-
}
119+
"*.{js,jsx}": [
120+
"yarn check-js"
121+
],
122+
"*.{js,json,md}": [
123+
"prettier-eslint --write",
124+
"git add"
125+
]
124126
},
125127
"browserify": {
126128
"transform": [

0 commit comments

Comments
 (0)