Skip to content

Commit e2c41ec

Browse files
committed
Swap semistandard for eslint
(closes mapbox#13)
1 parent 4ae3310 commit e2c41ec

File tree

2 files changed

+71
-8
lines changed

2 files changed

+71
-8
lines changed

.eslintrc

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"env": {
3+
"node": true
4+
},
5+
"extends": [
6+
"eslint:recommended"
7+
],
8+
"rules": {
9+
"dot-notation": "error",
10+
"eqeqeq": ["error", "smart"],
11+
"indent": ["off", 4],
12+
"keyword-spacing": "error",
13+
"linebreak-style": ["error", "unix"],
14+
"no-console": "off",
15+
"no-caller": "error",
16+
"no-catch-shadow": "error",
17+
"no-div-regex": "error",
18+
"no-extend-native": "error",
19+
"no-extra-bind": "error",
20+
"no-floating-decimal": "error",
21+
"no-implied-eval": "error",
22+
"no-invalid-this": "error",
23+
"no-iterator": "error",
24+
"no-labels": "error",
25+
"no-label-var": "error",
26+
"no-lone-blocks": "error",
27+
"no-loop-func": "error",
28+
"no-multi-str": "error",
29+
"no-native-reassign": "error",
30+
"no-new": "error",
31+
"no-new-func": "error",
32+
"no-new-wrappers": "error",
33+
"no-octal": "error",
34+
"no-octal-escape": "error",
35+
"no-process-env": "error",
36+
"no-proto": "error",
37+
"no-return-assign": "off",
38+
"no-script-url": "error",
39+
"no-self-compare": "error",
40+
"no-sequences": "error",
41+
"no-shadow": "off",
42+
"no-shadow-restricted-names": "error",
43+
"no-throw-literal": "error",
44+
"no-unneeded-ternary": "error",
45+
"no-unused-expressions": "error",
46+
"no-unexpected-multiline": "error",
47+
"no-unused-vars": "warn",
48+
"no-void": "error",
49+
"no-warning-comments": "warn",
50+
"no-with": "error",
51+
"no-use-before-define": ["off", "nofunc"],
52+
"semi": ["error", "always"],
53+
"semi-spacing": "error",
54+
"space-unary-ops": "error",
55+
"wrap-regex": "off",
56+
"quotes": ["error", "single"]
57+
}
58+
}

package.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "spritezero-cli",
33
"version": "1.1.1",
4+
"main": "index.js",
45
"description": "a command-line interface for spritezero generation of raster sprites from SVG input",
6+
"author": "Tom MacWright",
7+
"license": "ISC",
58
"repository": {
69
"type": "git",
710
"url": "git@github.com:mapbox/spritezero-cli.git"
811
},
9-
"main": "index.js",
10-
"scripts": {
11-
"test": "semistandard bin/spritezero && tap --coverage test/test.js"
12-
},
12+
"bugs": "https://github.com/mapbox/spritezero-cli/issues",
1313
"bin": {
1414
"spritezero": "bin/spritezero"
1515
},
@@ -19,8 +19,6 @@
1919
"svg",
2020
"vector"
2121
],
22-
"author": "Tom MacWright",
23-
"license": "ISC",
2422
"dependencies": {
2523
"minimist": "^1.2.0",
2624
"multiline": "^1.0.2",
@@ -29,7 +27,14 @@
2927
"spritezero": "^3.7.0"
3028
},
3129
"devDependencies": {
32-
"semistandard": "^9.0.0",
33-
"tap": "^7.0.0"
30+
"eslint": "~3.5.0",
31+
"tap": "~7.1.0"
32+
},
33+
"engines": {
34+
"node": ">=4.0.0"
35+
},
36+
"scripts": {
37+
"lint": "eslint bin/spritezero test/",
38+
"test": "npm run lint && tap --coverage test/test.js"
3439
}
3540
}

0 commit comments

Comments
 (0)