From 139e74b94cdfd187b43b24de76c6d84af21ee467 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 10 Aug 2019 19:14:42 -0700 Subject: [PATCH] [Tests] add linting --- .eslintrc | 5 +++++ package.json | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..3b5d9e9 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,5 @@ +{ + "root": true, + + "extends": "@ljharb", +} diff --git a/package.json b/package.json index 0c34529..1f3dca0 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "description": "Unbox a boxed JS primitive value.", "main": "index.js", "scripts": { + "lint": "eslint .", + "pretest": "npm run lint", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { @@ -23,5 +25,9 @@ "bugs": { "url": "https://github.com/ljharb/unbox-primitive/issues" }, - "homepage": "https://github.com/ljharb/unbox-primitive#readme" + "homepage": "https://github.com/ljharb/unbox-primitive#readme", + "devDependencies": { + "@ljharb/eslint-config": "^14.0.2", + "eslint": "^6.1.0" + } }