diff --git a/.rubocop.yml b/.rubocop.yml index aabcda3e..6bf660ba 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,7 +10,7 @@ inherit_gem: standard: config/base.yml AllCops: - TargetRubyVersion: 3.3.0 + TargetRubyVersion: 3.3.3 NewCops: enable Exclude: - "bin/**" diff --git a/Gemfile.lock b/Gemfile.lock index 205ee8eb..f5394b4e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -362,6 +362,7 @@ GEM zeitwerk (2.6.16) PLATFORMS + arm64-darwin-21 arm64-darwin-23 DEPENDENCIES diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 00000000..6fd957c1 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,15 @@ +# https://github.com/crate-ci/typos/blob/master/docs/reference.md + +[default.extend-words] +# Don't correct the following words + +[files] +extend-exclude = [ + "app/assets/stylesheets/**", + "app/assets/fonts/**", + "vendor/**", + "/spec/fixtures/**", + "/lib/assets/**", + "*.css", + "*.pdf", +] diff --git a/app/javascript/application.js b/app/javascript/application.js index 0d7b4940..9c394a0c 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -1,3 +1,3 @@ // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails -import "@hotwired/turbo-rails" -import "controllers" +import '@hotwired/turbo-rails' +import 'controllers' diff --git a/app/javascript/controllers/application.js b/app/javascript/controllers/application.js index 1213e85c..c030eb8c 100644 --- a/app/javascript/controllers/application.js +++ b/app/javascript/controllers/application.js @@ -1,9 +1,9 @@ -import { Application } from "@hotwired/stimulus" +import { Application } from '@hotwired/stimulus' const application = Application.start() // Configure Stimulus development experience application.debug = false -window.Stimulus = application +window.Stimulus = application export { application } diff --git a/app/javascript/controllers/hello_controller.js b/app/javascript/controllers/hello_controller.js index 5975c078..f914115e 100644 --- a/app/javascript/controllers/hello_controller.js +++ b/app/javascript/controllers/hello_controller.js @@ -1,7 +1,7 @@ -import { Controller } from "@hotwired/stimulus" +import { Controller } from '@hotwired/stimulus' export default class extends Controller { - connect() { - this.element.textContent = "Hello World!" + connect () { + this.element.textContent = 'Hello World!' } } diff --git a/app/javascript/controllers/index.js b/app/javascript/controllers/index.js index 54ad4cad..390177a3 100644 --- a/app/javascript/controllers/index.js +++ b/app/javascript/controllers/index.js @@ -1,10 +1,10 @@ // Import and register all your controllers from the importmap under controllers/* -import { application } from "controllers/application" +import { application } from 'controllers/application' // Eager load all controllers defined in the import map under controllers/**/*_controller -import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading" -eagerLoadControllersFrom("controllers", application) +import { eagerLoadControllersFrom } from '@hotwired/stimulus-loading' +eagerLoadControllersFrom('controllers', application) // Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!) // import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading" diff --git a/config/tailwind.config.js b/config/tailwind.config.js index d6ad82c0..7cba2be2 100644 --- a/config/tailwind.config.js +++ b/config/tailwind.config.js @@ -10,13 +10,13 @@ module.exports = { theme: { extend: { fontFamily: { - sans: ['Inter var', ...defaultTheme.fontFamily.sans], - }, - }, + sans: ['Inter var', ...defaultTheme.fontFamily.sans] + } + } }, plugins: [ require('@tailwindcss/forms'), require('@tailwindcss/typography'), - require('@tailwindcss/container-queries'), + require('@tailwindcss/container-queries') ] } diff --git a/package.json b/package.json new file mode 100644 index 00000000..43348ddf --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "rails_world", + "version": "1.0.0", + "standard": { + "ignore": ["vendor/**"] + } +}