From b1539b87ff0e556d305c6be45d0c7a97f3d6fe0d Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 21 Dec 2024 19:00:40 +0100 Subject: [PATCH] Add eslint-plugin-compat (#966) --- eslint.config.mjs | 10 ++++++---- package.json | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 2bd9b289..0a0c508d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,13 +1,15 @@ import neostandard from 'neostandard' +import compat from 'eslint-plugin-compat' export default [ { ignores: [ - 'coverage/**/*.js', - 'dist/**/*.js', - 'test/**/*.js', - 'vendor/**/*.js', + 'coverage/*', + 'dist/*', + 'test/*', + 'vendor/*', ] }, + compat.configs['flat/recommended'], ...neostandard() ] diff --git a/package.json b/package.json index c29c50ff..e549f6a9 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "@rollup/plugin-node-resolve": "^16.0.0", "chrome-launcher": "^1.1.2", "eslint": "^9.17.0", + "eslint-plugin-compat": "^6.0.2", "neostandard": "^0.12.0", "puppeteer-core": "^23.10.4", "rollup": "^4.28.1",