From a2b503974c72d9599ce9a32bafb79ac3e3d3e36c Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Mon, 9 Dec 2024 14:31:11 -0600 Subject: [PATCH] lint --- .npmrc | 2 ++ .prettierrc.cjs | 1 + .rubocop.yml | 2 ++ .streerc | 2 ++ .template-lintrc.cjs | 1 + Gemfile | 8 +++++ Gemfile.lock | 86 ++++++++++++++++++++++++++++++++++++++++++++ eslint.config.mjs | 3 ++ settings.yml | 5 +++ 9 files changed, 110 insertions(+) create mode 100644 .npmrc create mode 100644 .prettierrc.cjs create mode 100644 .rubocop.yml create mode 100644 .streerc create mode 100644 .template-lintrc.cjs create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 eslint.config.mjs diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..89ddd35 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +engine-strict = true +auto-install-peers = false diff --git a/.prettierrc.cjs b/.prettierrc.cjs new file mode 100644 index 0000000..57f647b --- /dev/null +++ b/.prettierrc.cjs @@ -0,0 +1 @@ +module.exports = require("@discourse/lint-configs/prettier"); diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..fb14dfa --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,2 @@ +inherit_gem: + rubocop-discourse: stree-compat.yml diff --git a/.streerc b/.streerc new file mode 100644 index 0000000..5c47737 --- /dev/null +++ b/.streerc @@ -0,0 +1,2 @@ +--print-width=100 +--plugins=plugin/trailing_comma,plugin/disable_auto_ternary diff --git a/.template-lintrc.cjs b/.template-lintrc.cjs new file mode 100644 index 0000000..5355ea0 --- /dev/null +++ b/.template-lintrc.cjs @@ -0,0 +1 @@ +module.exports = require("@discourse/lint-configs/template-lint"); diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..31d8bf7 --- /dev/null +++ b/Gemfile @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +group :development do + gem "rubocop-discourse" + gem "syntax_tree" +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..c178ac9 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,86 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (7.2.1.1) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.8) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + drb (2.2.1) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + json (2.7.2) + language_server-protocol (3.17.0.3) + logger (1.6.1) + minitest (5.25.1) + parallel (1.26.3) + parser (3.3.5.0) + ast (~> 2.4.1) + racc + prettier_print (1.2.1) + racc (1.8.1) + rack (3.1.8) + rainbow (3.1.1) + regexp_parser (2.9.2) + rubocop (1.67.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.32.2, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.32.3) + parser (>= 3.3.1.0) + rubocop-capybara (2.21.0) + rubocop (~> 1.41) + rubocop-discourse (3.8.2) + activesupport (>= 6.1) + rubocop (>= 1.59.0) + rubocop-capybara (>= 2.0.0) + rubocop-factory_bot (>= 2.0.0) + rubocop-rails (>= 2.25.0) + rubocop-rspec (>= 3.0.1) + rubocop-rspec_rails (>= 2.30.0) + rubocop-factory_bot (2.26.1) + rubocop (~> 1.61) + rubocop-rails (2.26.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.52.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rspec (3.1.0) + rubocop (~> 1.61) + rubocop-rspec_rails (2.30.0) + rubocop (~> 1.61) + rubocop-rspec (~> 3, >= 3.0.1) + ruby-progressbar (1.13.0) + securerandom (0.3.1) + syntax_tree (6.2.0) + prettier_print (>= 1.2.0) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (2.6.0) + +PLATFORMS + ruby + +DEPENDENCIES + rubocop-discourse + syntax_tree + +BUNDLED WITH + 2.5.21 diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..41477ae --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,3 @@ +import DiscourseRecommendedTheme from "@discourse/lint-configs/eslint-theme"; + +export default [...DiscourseRecommendedTheme]; diff --git a/settings.yml b/settings.yml index cd406f8..2ba264f 100644 --- a/settings.yml +++ b/settings.yml @@ -3,6 +3,7 @@ featured_lists: [{"title":"New Pms","length":5,"filter":"new", "tag":"", "link":"/my/messages/new", "solved":""}, {"title":"Unread Pms","length":5,"filter":"unread", "tag":"", "link":"/my/messages/unread", "solved":""}, {"title":"Sent Pms","length":5,"filter":"sent", "tag":"", "link":"/my/messages/sent", "solved":""}, + {"title":"Literate Computing Pms","length":5,"filter":"archive", "tag":"", "link":"/my/messages/archive", "solved":"", "group": "literate-computing"}] {"title":"Archived Pms","length":5,"filter":"archive", "tag":"", "link":"/my/messages/archive", "solved":""}] json_schema: '{ "type": "array", @@ -42,6 +43,10 @@ featured_lists: "type": "string", "description": "Set a CSS class name for custom styles" } + "group": { + "type": "string", + "description": "Group mailboxes" + } }, "additionalProperties": false }