Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ jobs:
yarn run lint
yarn run typecheck
bundle exec rubocop
make lint_erb
make check_asset_strings
NODE_ENV=production ./bin/webpack && yarn es5-safe
build-release-container:
Expand Down
35 changes: 35 additions & 0 deletions .erb-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
EnableDefaultLinters: false
linters:
DeprecatedClasses:
enabled: true
rule_set:
- deprecated:
- 'align-(top|middle|bottom|baseline)'
- '(left)-align'
- 'justify'
- 'nowrap'
- 'line-height-[3]'
- 'list-style-none'
- 'table(-cell)?'
- 'fit'
- 'max-width-[1-4]'
- 'mxn[4]'
- 'm[trbly]?-auto'
- 'pxn[1-4]'
- 'p[trblxy]?-auto'
- 'fixed'
- 'z[1-4]'
- 'col-(right|[579])'
- 'sm-col-11?'
- '(md|lg)-col(-(right|[1-9][0-2]?))?'
- '(sm|md|lg)-flex'
- 'flex-(column|none)'
- '(items|self|justify|content)-(start|end|center|baseline|stretch)'
- 'order-([0-3]|last)'
- 'not-rounded'
- 'rounded-(top|right|bottom|left)'
- '(md|lg)-hide'
- '(xs|md|lg)-show'
- 'btn-(small|big|narrow|transparent)'
- 'border-(black|gray|white|aqua|orange|fuchsia|purple|maroon|darken-[1-4]|lighten-[1-4])'
suggestion: 'Use USWDS classes instead of BassCSS.'
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ group :development, :test do
gem 'aws-sdk-cloudwatchlogs', require: false
gem 'bootsnap', '~> 1.5.0', require: false
gem 'bullet', '>= 6.0.2'
gem 'erb_lint', '~> 0.0.37'
gem 'i18n-tasks', '>= 0.9.31'
gem 'knapsack'
gem 'nokogiri', '~> 1.11.0'
Expand Down
19 changes: 19 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,14 @@ GEM
coderay (>= 1.0.0)
erubi (>= 1.0.0)
rack (>= 0.9.0)
better_html (1.0.15)
actionview (>= 4.0)
activesupport (>= 4.0)
ast (~> 2.0)
erubi (~> 1.4)
html_tokenizer (~> 0.0.6)
parser (>= 2.4)
smart_properties
bindata (2.4.8)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
Expand Down Expand Up @@ -282,6 +290,14 @@ GEM
launchy (~> 2.1)
mail (~> 2.7)
equalizer (0.0.11)
erb_lint (0.0.37)
activesupport
better_html (~> 1.0.7)
html_tokenizer
parser (>= 2.7.1.4)
rainbow
rubocop
smart_properties
errbase (0.2.0)
erubi (1.10.0)
exception_notification (4.4.3)
Expand Down Expand Up @@ -334,6 +350,7 @@ GEM
thor
highline (2.0.3)
hiredis (0.6.3)
html_tokenizer (0.0.7)
htmlentities (4.3.4)
http_accept_language (2.1.1)
httparty (0.18.1)
Expand Down Expand Up @@ -613,6 +630,7 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
smart_properties (1.15.0)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -723,6 +741,7 @@ DEPENDENCIES
devise (~> 4.7.2)
dotiw (>= 4.0.1)
email_spec
erb_lint (~> 0.0.37)
exception_notification (>= 4.4.0)
factory_bot_rails (>= 5.2.0)
faker
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ docker_setup:
check: lint test

lint:
@echo "--- erb-lint ---"
make lint_erb
@echo "--- rubocop ---"
bundle exec rubocop
@echo "--- fasterer ---"
bundle exec fasterer
@echo "--- eslint ---"
yarn run lint

lint_erb:
bundle exec erblint app/views/**/*.erb

lintfix:
@echo "--- rubocop fix ---"
bundle exec rubocop -R -a
Expand Down