Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 5168c9c

Browse files
authored
Merge pull request mochajs#2648 from kt3k/feature/simpler-semistandard
use `semistandard` directly
2 parents b7f93e5 + 702c1f7 commit 5168c9c

File tree

5 files changed

+11
-29
lines changed

5 files changed

+11
-29
lines changed

.eslintrc.yaml

-11
This file was deleted.

Makefile

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

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

3941
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
4042

lib/browser/.eslintrc.yaml

-4
This file was deleted.

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,6 @@
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",
331326
"expect.js": "^0.3.1",
332327
"istanbul-combine": "^0.3.0",
333328
"karma": "1.3.0",
@@ -342,6 +337,7 @@
342337
"os-name": "^2.0.1",
343338
"phantomjs": "1.9.8",
344339
"rimraf": "^2.5.2",
340+
"semistandard": "^9.2.1",
345341
"should": "^11.1.1",
346342
"through2": "^2.0.1",
347343
"watchify": "^3.7.0"
@@ -374,5 +370,11 @@
374370
"phantomjs",
375371
"lodash.create"
376372
]
373+
},
374+
"semistandard": {
375+
"ignore": [
376+
"/mocha.js",
377+
"/lib/to-iso-string/**/*.js"
378+
]
377379
}
378380
}

test/.eslintrc.yaml

-7
This file was deleted.

0 commit comments

Comments
 (0)