diff --git a/eslint.config.mjs b/eslint.config.mjs index 506121850..9e9399ae5 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -47,7 +47,7 @@ export default [{ "no-unused-vars": "warn", }, }, { - files: ["**/*.spec.js", "**/*.spec.jsx"], + files: ["*.js", "*.vue", "*.es6", "**/*.spec.js", "**/*.spec.jsx"], languageOptions: { globals: { diff --git a/package.json b/package.json index 454c9465f..ed1023fbc 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "pre-commit": "yarn lint-staged" }, "lint-staged": { - "*.js": [ + "*.{js,es6,vue}": [ "prettier --write", "eslint" ]