From 5a732dd17a789709b0431358568f4db6967fdd91 Mon Sep 17 00:00:00 2001 From: Venus Lumanglas Date: Tue, 30 Jul 2024 15:05:07 +0800 Subject: [PATCH] Fix slim-lint script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d6c0755..4b2879d 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "rubocop": "bin/rubocop", "rubocop-fix": "bin/rubocop -a", "rubocop-ci": "bin/rubocop -f github", - "slim-lint": "slim-lint 'app/views/**/*.slim'", + "slim-lint": "bin/bundle exec slim-lint 'app/views/**/*.slim'", "stree-fix": "bin/bundle exec stree write '**/*.rb'", "stree": "bin/bundle exec stree check '**/*.rb'", "postinstall": "husky" @@ -75,7 +75,7 @@ "./bin/rubocop -a" ], "spec/**/*_spec.rb": "./bin/rspec", - "app/views/**/*.slim": "slim-lint", + "app/views/**/*.slim": "./bin/bundle exec slim-lint", "**/*.{css,html,js,json,md,mjs,yml}": "./node_modules/.bin/prettier --write --cache --cache-location .cache/prettier", "**/*.{cjs,js,mjs}": "./node_modules/.bin/eslint --cache --cache-location .cache/eslint --fix --report-unused-disable-directives" },