Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
efiand committed Dec 5, 2024
1 parent abfb453 commit 3a32048
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 189 deletions.
5 changes: 2 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { readGitignoreFiles } from "eslint-gitignore";
import perfectionist from "eslint-plugin-perfectionist";
import pluginVue from "eslint-plugin-vue";

const { npm_lifecycle_event } = process.env;
const strictMode =
npm_lifecycle_event.includes("lint") || npm_lifecycle_event.includes("build");
const scriptName = process?.env?.npm_lifecycle_event || "";
const strictMode = scriptName.includes("lint") || scriptName.includes("build");

export default [
{ files: ["**/*.{js,vue}"] },
Expand Down
224 changes: 39 additions & 185 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"devDependencies": {
"@destination/prettier-plugin-twig": "1.5.0",
"@eslint/markdown": "6.2.1",
"@fastify/pre-commit": "2.2.0",
"@vitejs/plugin-vue": "5.1.4",
"autoprefixer": "10.4.20",
"eslint": "9.14.0",
Expand All @@ -32,7 +33,6 @@
"postcss-scss": "4.0.9",
"postcss-sort-media-queries": "5.2.0",
"postcss-url": "10.1.3",
"pre-commit": "1.2.2",
"prettier": "3.3.3",
"sass-embedded": "1.80.5",
"stylelint": "16.10.0",
Expand Down

0 comments on commit 3a32048

Please sign in to comment.