From c3afd4db97000ae48e82e7cb6f48f65274e2eb60 Mon Sep 17 00:00:00 2001 From: Mathias Schreck Date: Fri, 2 Mar 2018 16:48:35 +0100 Subject: [PATCH] Use eslint-plugin-node to prevent usage of unsupported language features --- .eslintrc.json | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 433948c..55cda52 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,6 @@ { "extends": "holidaycheck/es2015", + "plugins": [ "node" ], "env": { "node": true @@ -10,6 +11,10 @@ "ecmaVersion": 2017 }, + "rules": { + "node/no-unsupported-features": "error" + }, + "overrides": [ { "files": [ "test/**/*.js" ], diff --git a/package.json b/package.json index 3e2ef4b..37b90e2 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "coveralls": "^3.0.0", "eslint": "^4.0.0", "eslint-config-holidaycheck": "^0.12.1", + "eslint-plugin-node": "^6.0.1", "mocha": "^5.0.1", "nyc": "^11.4.1", "pr-log": "^2.0.0"