From 750cc0d5f5bc7e1a1a2a0c6b793b7264e98f0104 Mon Sep 17 00:00:00 2001 From: mimi89999 Date: Sat, 28 Sep 2024 16:25:20 +0200 Subject: [PATCH] ci(lint): Enforce lint rules for rollup scripts Closes #278 --- .eslintrc.js | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index cf27c100..4a355b0f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -119,6 +119,13 @@ module.exports = { 'import/no-relative-packages': 'off', }, }, + { + files: ['./scripts/rollup.config.mjs', './scripts/jsonPlugin.mjs'], + rules: { + 'compat/compat': 'off', + 'max-statements': 'off', + }, + }, ], env: { browser: true, diff --git a/package.json b/package.json index 3f49670b..c857c477 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "prettier": "./prettier.js", "scripts": { "build": "lerna exec --parallel -- rollup -c ../../../scripts/rollup.config.mjs", - "lint": "eslint --ext .js,.ts --fix --cache .", + "lint": "eslint --ext .js,.mjs,.ts --fix --cache .", "typecheck": "tsc --noEmit", "test": "jest --coverage", "changed": "lerna changed",