From 61adcde81932ed4de7fd1696b1401d3dd0a2207c Mon Sep 17 00:00:00 2001 From: Sebastian Ng Date: Fri, 13 Oct 2017 15:41:00 -0700 Subject: [PATCH 1/2] Update repository for newer eslint versions --- eslintrc.json | 7 ++++--- package.json | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/eslintrc.json b/eslintrc.json index d9bf30b..fe3b2cb 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -1,6 +1,8 @@ { - "ecmaFeatures": { - "modules": false + "parserOptions": { + "ecmaFeatures": { + "modules": false + } }, "env": { @@ -102,7 +104,6 @@ "no-unneeded-ternary": 2, "no-unreachable": 2, "no-unused-expressions": 2, - "no-unused-vars": [2, { "vars": "all", "args": "none" }], "no-useless-call": 2, "no-var": 2, "no-with": 2, diff --git a/package.json b/package.json index a6a75ed..21ffba1 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "eslint-config-pebble", "description": "ESLint Shareable Config for Pebble", - "version": "4.0.0", + "version": "5.0.0", "bugs": { "url": "https://github.com/pebble/eslint-config-pebble/issues" }, "peerDependencies": { - "eslint": "^3.0.0", - "eslint-plugin-standard": "^2.0.0" + "eslint": "^4.0.0", + "eslint-plugin-standard": "^3.0.0" }, "devDependencies": { "tape": "^4.0.0" From db307680a0dd10ee1354d5a5d19ffbb80fce1d33 Mon Sep 17 00:00:00 2001 From: Sebastian Ng Date: Mon, 16 Oct 2017 10:54:41 -0700 Subject: [PATCH 2/2] Fix tests --- package.json | 2 +- test/basic.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 21ffba1..e634cb8 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "eslint-plugin-standard": "^3.0.0" }, "devDependencies": { - "tape": "^4.0.0" + "tape": "^4.8.0" }, "homepage": "https://github.com/pebble/eslint-config-pebble", "keywords": [ diff --git a/test/basic.js b/test/basic.js index b8f55da..f07990a 100644 --- a/test/basic.js +++ b/test/basic.js @@ -2,7 +2,7 @@ var config = require('../') var test = require('tape') test('test basic properties of config', function (t) { - t.ok(isObject(config.ecmaFeatures)) + t.ok(isObject(config.parserOptions.ecmaFeatures)) t.ok(isObject(config.env)) t.ok(isObject(config.globals)) t.ok(isObject(config.rules))