diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 3e4b026a81..0000000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -lib/to-iso-string/**/*.js -mocha.js diff --git a/.eslintrc.yaml b/.eslintrc.yaml deleted file mode 100644 index 911f22c681..0000000000 --- a/.eslintrc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -env: - node: true - browser: true -parserOptions: - ecmaVersion: 5 - sourceType: script -extends: semistandard -rules: - strict: - - error - - safe diff --git a/Makefile b/Makefile index 40a098e318..28a5d8963d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ BROWSERIFY := "node_modules/.bin/browserify" -ESLINT := "node_modules/.bin/eslint" +SEMISTANDARD:= "node_modules/.bin/semistandard" KARMA := "node_modules/.bin/karma" MOCHA := "bin/mocha" @@ -24,7 +24,9 @@ clean: lint: @printf "==> [Test :: Lint]\n" - $(ESLINT) . bin/* + $(SEMISTANDARD) $(SRC) + $(SEMISTANDARD) --env mocha --global assert --global expect --global run $(TESTS) + $(SEMISTANDARD) bin/* scripts/*.js *.js 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 diff --git a/lib/browser/.eslintrc.yaml b/lib/browser/.eslintrc.yaml deleted file mode 100644 index d85f537d3b..0000000000 --- a/lib/browser/.eslintrc.yaml +++ /dev/null @@ -1,4 +0,0 @@ -env: - node: false - browser: false - commonjs: true diff --git a/package.json b/package.json index 71bfad2882..f554ee7aad 100644 --- a/package.json +++ b/package.json @@ -318,11 +318,6 @@ "assert": "^1.4.1", "browserify": "^13.0.0", "coffee-script": "^1.10.0", - "eslint": "^3.11.1", - "eslint-config-semistandard": "^7.0.0", - "eslint-config-standard": "^6.2.1", - "eslint-plugin-promise": "^3.4.0", - "eslint-plugin-standard": "2.0.1", "expect.js": "^0.3.1", "karma": "^1.1.0", "karma-browserify": "^5.0.5", @@ -335,6 +330,7 @@ "os-name": "^2.0.1", "phantomjs": "1.9.8", "rimraf": "^2.5.2", + "semistandard": "^9.2.1", "should": "^11.1.1", "through2": "^2.0.1", "watchify": "^3.7.0" @@ -367,5 +363,11 @@ "phantomjs", "lodash.create" ] + }, + "semistandard": { + "ignore": [ + "/mocha.js", + "/lib/to-iso-string/**/*.js" + ] } } diff --git a/test/.eslintrc.yaml b/test/.eslintrc.yaml deleted file mode 100644 index 1830a0b6f4..0000000000 --- a/test/.eslintrc.yaml +++ /dev/null @@ -1,7 +0,0 @@ -env: - mocha: true -globals: - expect: false - assert: false - # https://github.com/sindresorhus/globals/pull/102 - run: false