From 7ff6c478c4e4d255f1c294566efd2f18eadaf0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Thu, 29 Jul 2021 10:14:59 +0800 Subject: [PATCH 1/2] Fix: support eslint v6 refs: https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/pull/95#issuecomment-888410721 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b3ebdbc6..002ea55e 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "nyc": "^15.1.0" }, "peerDependencies": { - "eslint": "^7.0.0" + "eslint": ">=6.0.0" }, "engines": { "node": "^10.12.0 || >=12.0.0" From b3bc834b1f02ce6fa9570d455be7a477a0a7b91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Thu, 29 Jul 2021 10:17:26 +0800 Subject: [PATCH 2/2] chore: simplify eslint config --- .eslintrc.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 445cfc8f..352444a0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,13 +5,9 @@ module.exports = { plugins: ['node'], extends: [ 'not-an-aardvark/node', - 'plugin:node/recommended', 'plugin:unicorn/recommended', + 'plugin:node/recommended', ], - parserOptions: { - ecmaVersion: 2021, - sourceType: 'script', - }, rules: { 'comma-dangle': [ 'error',