Skip to content

Commit 0b33130

Browse files
committed
[Dev Deps] add eslint, drop jscs
1 parent f48732a commit 0b33130

File tree

4 files changed

+12
-124
lines changed

4 files changed

+12
-124
lines changed

.eslintrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"root": true,
3+
4+
"extends": "@ljharb",
5+
}

.jscs.json

-120
This file was deleted.

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
},
2323
"dependencies": {},
2424
"devDependencies": {
25+
"@ljharb/eslint-config": "^15.0.2",
2526
"auto-changelog": "^1.16.2",
2627
"covert": "^1.1.0",
27-
"jscs": "^2.1.0",
28+
"eslint": "^6.6.0",
2829
"tape": "^4.0.3"
2930
},
3031
"license": "MIT",
@@ -35,10 +36,10 @@
3536
}
3637
],
3738
"scripts": {
38-
"test": "npm run lint && node test/index.js && npm run coverage-quiet",
39+
"pretest": "npm run lint",
40+
"test": "node test && npm run coverage -- --quiet",
3941
"coverage": "covert test/index.js",
40-
"coverage-quiet": "covert test/index.js --quiet",
41-
"lint": "jscs *.js */*.js",
42+
"lint": "eslint .",
4243
"version": "auto-changelog && git add CHANGELOG.md",
4344
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
4445
},

test/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var test = require('tape');
24

35
var isObject = require('../index');

0 commit comments

Comments
 (0)