Skip to content

Commit dcfc094

Browse files
committed
Revert "use semistandard directly"
This reverts commit bb70b18.
1 parent 93392dd commit dcfc094

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

.eslintrc.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
env:
2+
node: true
3+
browser: true
4+
parserOptions:
5+
ecmaVersion: 5
6+
sourceType: script
7+
extends: semistandard
8+
rules:
9+
strict:
10+
- error
11+
- safe

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BROWSERIFY := "node_modules/.bin/browserify"
2-
SEMISTANDARD:= "node_modules/.bin/semistandard"
2+
ESLINT := "node_modules/.bin/eslint"
33
KARMA := "node_modules/.bin/karma"
44
MOCHA := "bin/mocha"
55
NYC := "node_modules/.bin/nyc"
@@ -34,9 +34,7 @@ clean:
3434

3535
lint:
3636
@printf "==> [Test :: Lint]\n"
37-
$(SEMISTANDARD) $(SRC)
38-
$(SEMISTANDARD) --env mocha --global assert --global expect --global run $(TESTS)
39-
$(SEMISTANDARD) bin/* scripts/*.js *.js
37+
$(ESLINT) . "bin/*"
4038

4139
test-node: test-bdd test-tdd test-qunit test-exports test-unit test-integration test-jsapi test-compilers test-glob test-requires test-reporters test-only test-global-only
4240

lib/browser/.eslintrc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
env:
2+
node: false
3+
browser: false
4+
commonjs: true

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@
323323
"browserify": "^13.0.0",
324324
"coffee-script": "^1.10.0",
325325
"coveralls": "^2.11.15",
326+
"eslint": "^3.11.1",
327+
"eslint-config-semistandard": "^7.0.0",
328+
"eslint-config-standard": "^6.2.1",
329+
"eslint-plugin-promise": "^3.4.0",
330+
"eslint-plugin-standard": "2.0.1",
326331
"expect.js": "^0.3.1",
327332
"istanbul-combine": "^0.3.0",
328333
"karma": "1.3.0",
@@ -336,7 +341,6 @@
336341
"nyc": "^10.0.0",
337342
"phantomjs": "1.9.8",
338343
"rimraf": "^2.5.2",
339-
"semistandard": "^9.2.1",
340344
"should": "^11.1.1",
341345
"through2": "^2.0.1",
342346
"watchify": "^3.7.0"
@@ -369,11 +373,5 @@
369373
"phantomjs",
370374
"lodash.create"
371375
]
372-
},
373-
"semistandard": {
374-
"ignore": [
375-
"/mocha.js",
376-
"/lib/to-iso-string/**/*.js"
377-
]
378376
}
379377
}

test/.eslintrc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
env:
2+
mocha: true
3+
globals:
4+
expect: false
5+
assert: false
6+
# https://github.com/sindresorhus/globals/pull/102
7+
run: false

0 commit comments

Comments
 (0)