Skip to content

Commit e2d2547

Browse files
committed
Add semistandard linting
1 parent 94b31f9 commit e2d2547

File tree

5 files changed

+313
-253
lines changed

5 files changed

+313
-253
lines changed

.babelrc

-8
This file was deleted.

.eslintignore

-3
This file was deleted.

.eslintrc

-18
This file was deleted.

package.json

+24-7
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,37 @@
2828
"babel-cli": "^6.24.1",
2929
"babel-core": "^6.24.1",
3030
"babel-eslint": "^7.2.3",
31-
"babel-loader": "^7.0.0",
3231
"babel-plugin-transform-runtime": "^6.23.0",
3332
"babel-preset-es2015": "^6.24.1",
3433
"babel-preset-stage-0": "^6.24.1",
3534
"chai": "^3.5.0",
36-
"eslint": "^3.19.0",
37-
"eslint-config-airbnb": "14.1.0",
3835
"mocha": "^3.2.0",
39-
"sinon": "^2.1.0"
36+
"semistandard": "^11.0.0",
37+
"sinon": "^2.1.0",
38+
"snazzy": "^7.0.0"
4039
},
4140
"scripts": {
42-
"lint": "eslint .",
41+
"lint": "semistandard | snazzy",
4342
"compile": "babel src --out-dir dist",
44-
"test": "NODE_ENV=test mocha --compilers js:babel-core/register",
45-
"prepublish": "npm run compile"
43+
"test": "npm run lint && mocha --compilers js:babel-core/register",
44+
"prepublish": "npm run test && npm run compile"
45+
},
46+
"semistandard": {
47+
"parser": "babel-eslint",
48+
"env": {
49+
"browser": true,
50+
"node": true
51+
},
52+
"ignore": [
53+
"dist",
54+
"lib",
55+
"coverage"
56+
]
57+
},
58+
"babel": {
59+
"presets": [
60+
"es2015",
61+
"stage-0"
62+
]
4663
}
4764
}

0 commit comments

Comments
 (0)