From 064000b7bc15bdbb94a46ab6dbe3bd91941aef8e Mon Sep 17 00:00:00 2001 From: Justin DiRose Date: Tue, 1 Sep 2020 20:31:38 -0500 Subject: [PATCH] DEV: Set up dependencies for workflows --- .eslintrc | 4 +++- .rubocop.yml | 2 ++ .ruby-version | 1 - Gemfile | 1 + Gemfile.lock | 43 +++++++++++++++++++++++++++++++++++++++++++ package.json | 10 ++++++++++ 6 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 .rubocop.yml delete mode 100644 .ruby-version create mode 100644 Gemfile.lock create mode 100644 package.json diff --git a/.eslintrc b/.eslintrc index 4d21ca7..101ea29 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,7 @@ { "globals": { "Stripe": true, - } + }, + "extends": "eslint-config-discourse" } + diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..d46296c --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,2 @@ +inherit_gem: + rubocop-discourse: default.yml diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index 6a6a3d8..0000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -2.6.1 diff --git a/Gemfile b/Gemfile index df32188..f6bd3b2 100644 --- a/Gemfile +++ b/Gemfile @@ -2,4 +2,5 @@ group :development do gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git' + gem 'rubocop-discourse' end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..f828da5 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,43 @@ +GIT + remote: https://github.com/discourse/translations-manager.git + revision: a8b225f7fabd3250ba88a4a2eff797693df51192 + specs: + translations-manager (0.6) + +GEM + specs: + ast (2.4.1) + parallel (1.19.2) + parser (2.7.1.4) + ast (~> 2.4.1) + rainbow (3.0.0) + regexp_parser (1.7.1) + rexml (3.2.4) + rubocop (0.88.0) + parallel (~> 1.10) + parser (>= 2.7.1.1) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.7) + rexml + rubocop-ast (>= 0.1.0, < 1.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 2.0) + rubocop-ast (0.3.0) + parser (>= 2.7.1.4) + rubocop-discourse (2.3.1) + rubocop (>= 0.69.0) + rubocop-rspec (>= 1.39.0) + rubocop-rspec (1.42.0) + rubocop (>= 0.87.0) + ruby-progressbar (1.10.1) + unicode-display_width (1.7.0) + +PLATFORMS + ruby + +DEPENDENCIES + rubocop-discourse + translations-manager! + +BUNDLED WITH + 2.1.4 diff --git a/package.json b/package.json new file mode 100644 index 0000000..05332ef --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "name": "discourse-subscriptions", + "version": "1.0.0", + "repository": "git@github.com:discourse/discourse-subscriptions.git", + "author": "Discourse", + "license": "MIT", + "devDependencies": { + "eslint-config-discourse": "latest" + } +}