From ad1f1c35b4c430a7c2797f10850033834014d636 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Sat, 4 Jan 2025 01:40:23 -0800 Subject: [PATCH] chore(linting): restore consistent linting on JS/TS files --- .github/scripts/.lintstagedrc.js | 6 ------ .lintstagedrc.js | 5 +++-- packages/calcite-design-tokens/.lintstagedrc.js | 6 ------ 3 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 .github/scripts/.lintstagedrc.js delete mode 100644 packages/calcite-design-tokens/.lintstagedrc.js diff --git a/.github/scripts/.lintstagedrc.js b/.github/scripts/.lintstagedrc.js deleted file mode 100644 index 37efde5b3f4..00000000000 --- a/.github/scripts/.lintstagedrc.js +++ /dev/null @@ -1,6 +0,0 @@ -const baseConfig = require("../../.lintstagedrc.js"); - -module.exports = { - ...baseConfig, - "*.{m,c,}js": ["eslint --fix", "prettier --write"], -}; diff --git a/.lintstagedrc.js b/.lintstagedrc.js index fd6a2cc4452..57f603a5499 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,5 +1,6 @@ module.exports = { - "*.{json,html,yml}": ["prettier --write"], - "*.scss": ["stylelint --fix", "prettier --write"], + "*.{cjs,mjs,ts,tsx}": ["eslint --fix", "prettier --write"], + "*.{html,json,yml}": ["prettier --write"], "*.md": ["prettier --write", "markdownlint --fix"], + "*.scss": ["stylelint --fix", "prettier --write"], }; diff --git a/packages/calcite-design-tokens/.lintstagedrc.js b/packages/calcite-design-tokens/.lintstagedrc.js deleted file mode 100644 index 8b2d6d6906f..00000000000 --- a/packages/calcite-design-tokens/.lintstagedrc.js +++ /dev/null @@ -1,6 +0,0 @@ -import baseConfig from "../../.lintstagedrc.js"; - -export default { - ...baseConfig, - "*.{ts,tsx,mjs,cjs}": ["eslint --fix", "prettier --write"], -};