Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config, `safe-publish-la…
Browse files Browse the repository at this point in the history
…test`, `tape`; remove `jscs`; add `aud`, `nyc`
  • Loading branch information
ljharb committed Jan 10, 2022
1 parent 7185252 commit bae7d9f
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 191 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
"sort-keys": 0,
"spaced-comment": [1, "always", { "markers": ["*"] }]
}
},
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ node_modules
npm-shrinkwrap.json
package-lock.json
yarn.lock

.nyc_output/
coverage/
175 changes: 0 additions & 175 deletions .jscs.json

This file was deleted.

3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ support
test
examples
*.sock

.nyc_output/
coverage/
13 changes: 13 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 86,
"statements": 85.93,
"functions": 82.43,
"branches": 76.06,
"exclude": [
"coverage",
"dist"
]
}
2 changes: 1 addition & 1 deletion lib/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var setProperty = function setP(target, name, value) {
writable: true
});
} else {
target[name] = value;
target[name] = value; // eslint-disable-line no-param-reassign
}
};

Expand Down
26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
"is": "^3.2.1"
},
"devDependencies": {
"@ljharb/eslint-config": "^13.0.0",
"covert": "^1.1.0",
"eslint": "^5.8.0",
"jscs": "^3.0.7",
"safe-publish-latest": "^1.1.2",
"tape": "^4.9.1"
"@ljharb/eslint-config": "^20.1.0",
"aud": "^1.1.5",
"eslint": "^8.6.0",
"in-publish": "^2.0.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^4.14.0"
},
"repository": {
"type": "git",
Expand All @@ -35,16 +36,13 @@
],
"main": "index",
"scripts": {
"prepublish": "safe-publish-latest",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run --silent tests-only",
"posttest": "npm run coverage-quiet",
"tests-only": "node test",
"coverage": "covert test/index.js",
"coverage-quiet": "covert test/index.js --quiet",
"lint": "npm run jscs && npm run eslint .",
"jscs": "jscs *.js */*.js",
"eslint": "eslint"
"posttest": "aud --production"
},
"engines": {
"node": ">=0.4.0"
Expand Down

0 comments on commit bae7d9f

Please sign in to comment.