Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
Fixes `import` violations.
  • Loading branch information
stevepolitodesign committed Dec 11, 2023
1 parent 3cbeffb commit 6390564
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
9 changes: 5 additions & 4 deletions lib/generators/templates/lint/eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": [
"@thoughtbot/eslint-config/base",
"@thoughtbot/eslint-config/prettier"
]
"extends": ["@thoughtbot/eslint-config/prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}
13 changes: 7 additions & 6 deletions test/generators/suspenders/lint_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ class LintGeneratorTest < Rails::Generators::TestCase
end

test "configures eslint" do
expected_content = <<~TEXT
expected_content = <<~JSON
{
"extends": [
"@thoughtbot/eslint-config/base",
"@thoughtbot/eslint-config/prettier"
]
"extends": ["@thoughtbot/eslint-config/prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}
TEXT
JSON

capture(:stderr) { run_generator }

Expand Down

0 comments on commit 6390564

Please sign in to comment.