Skip to content

Commit 22cb9b1

Browse files
committed
build: add jsinspector, close #132
1 parent 52a56d5 commit 22cb9b1

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

.jsinspectrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"threshold": 30,
3+
"identifiers": true,
4+
"literals": true,
5+
"color": true,
6+
"minInstances": 2,
7+
"ignore": "test|lib",
8+
"truncate": 100
9+
}

package-lock.json

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"prepare": "npm run build",
2121
"coverage": "nyc report --reporter=text-lcov | coveralls",
2222
"lint": "eslint {src,test}/*.js *.md --fix",
23-
"pretest": "clinton && npm run lint",
23+
"pretest": "clinton && npm run lint && jsinspect",
2424
"docs": "cross-env BABEL_ENV=docs webpack --progress --env.prod -p",
2525
"build": "rimraf lib && cross-env BABEL_ENV=production babel src -d lib --ignore docs",
2626
"test": "cross-env BABEL_ENV=production nyc ava",
@@ -75,6 +75,7 @@
7575
"html-webpack-plugin": "^3.2.0",
7676
"husky": "^2.4.1",
7777
"is-promise": "^2.1.0",
78+
"jsinspect": "^0.12.7",
7879
"lint-staged": "^8.2.1",
7980
"nyc": "^14.1.1",
8081
"posthtml": "^0.11.4",
@@ -169,6 +170,7 @@
169170
"xo-space"
170171
],
171172
"rules": {
173+
"unicorn/prevent-abbreviations": "off",
172174
"capitalized-comments": "off",
173175
"no-new": "off"
174176
}

0 commit comments

Comments
 (0)