rubocop'ing

This commit is contained in:
0x1eef 2023-03-12 16:50:19 -03:00
parent 468613e193
commit 919af86a65
3 changed files with 5 additions and 3 deletions

View file

@ -21,6 +21,8 @@ inherit_gem:
# Extra
Style/FrozenStringLiteralComment:
Enabled: true
Layout/SpaceInsideHashLiteralBraces:
Enabled: true
##
# Disabled

View file

@ -89,7 +89,7 @@ end
namespace :lint do
desc "Run rubocop (Ruby)"
task :rubocop do
sh "bundle exec rubocop lib/ src/"
sh "bundle exec rubocop"
end
desc "Run eslint (TypeScript)"

4
Rules
View file

@ -39,8 +39,8 @@ require_rules "rules/assets"
require_rules "rules/pages/surah/redirect"
require_rules "rules/pages/surah/stream", {locales:, i18n:, slugs:}
require_rules "rules/pages/surah/index", {locales:, i18n:}
require_rules "rules/pages/surah/random", {locales:, i18n:,slugs:}
require_rules "rules/pages/surah/id_redirect", {locales:, i18n:,slugs:}
require_rules "rules/pages/surah/random", {locales:, i18n:, slugs:}
require_rules "rules/pages/surah/id_redirect", {locales:, i18n:, slugs:}
##
# Inline CSS / JSON rules