Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit05cefd5

Browse files
authored
DEV: Update linting (#93)
1 parent576ccb6 commit05cefd5

File tree

11 files changed

+1203
-671
lines changed

11 files changed

+1203
-671
lines changed

‎.eslintrc‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎.eslintrc.cjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports=require("@discourse/lint-configs/eslint");

‎.prettierrc‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.prettierrc.cjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports=require("@discourse/lint-configs/prettier");

‎.template-lintrc.cjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports=require("@discourse/lint-configs/template-lint");

‎.template-lintrc.js‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎Gemfile.lock‎

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,52 @@ GEM
22
remote:https://rubygems.org/
33
specs:
44
ast (2.4.2)
5-
json (2.6.2)
6-
parallel (1.22.1)
7-
parser (3.1.2.1)
5+
json (2.7.1)
6+
language_server-protocol (3.17.0.3)
7+
parallel (1.24.0)
8+
parser (3.3.0.4)
89
ast (~>2.4.1)
9-
prettier_print (1.2.0)
10+
racc
11+
prettier_print (1.2.1)
12+
racc (1.7.3)
1013
rainbow (3.1.1)
11-
regexp_parser (2.6.0)
12-
rexml (3.2.5)
13-
rubocop (1.36.0)
14+
regexp_parser (2.9.0)
15+
rexml (3.2.6)
16+
rubocop (1.60.0)
1417
json (~>2.3)
18+
language_server-protocol (>=3.17.0)
1519
parallel (~>1.10)
16-
parser (>=3.1.2.1)
20+
parser (>=3.3.0.2)
1721
rainbow (>=2.2.2,<4.0)
1822
regexp_parser (>=1.8,<3.0)
1923
rexml (>=3.2.5,<4.0)
20-
rubocop-ast (>=1.20.1,<2.0)
24+
rubocop-ast (>=1.30.0,<2.0)
2125
ruby-progressbar (~>1.7)
22-
unicode-display_width (>=1.4.0,<3.0)
23-
rubocop-ast (1.21.0)
24-
parser (>=3.1.1.0)
25-
rubocop-discourse (3.0)
26-
rubocop (>=1.1.0)
27-
rubocop-rspec (>=2.0.0)
28-
rubocop-rspec (2.13.2)
29-
rubocop (~>1.33)
30-
ruby-progressbar (1.11.0)
31-
syntax_tree (5.1.0)
26+
unicode-display_width (>=2.4.0,<3.0)
27+
rubocop-ast (1.30.0)
28+
parser (>=3.2.1.0)
29+
rubocop-capybara (2.20.0)
30+
rubocop (~>1.41)
31+
rubocop-discourse (3.6.0)
32+
rubocop (>=1.59.0)
33+
rubocop-rspec (>=2.25.0)
34+
rubocop-factory_bot (2.25.1)
35+
rubocop (~>1.41)
36+
rubocop-rspec (2.26.1)
37+
rubocop (~>1.40)
38+
rubocop-capybara (~>2.17)
39+
rubocop-factory_bot (~>2.22)
40+
ruby-progressbar (1.13.0)
41+
syntax_tree (6.2.0)
3242
prettier_print (>=1.2.0)
33-
unicode-display_width (2.3.0)
43+
unicode-display_width (2.5.0)
3444

3545
PLATFORMS
36-
arm64-darwin-20
3746
ruby
38-
x86_64-darwin-18
39-
x86_64-darwin-19
40-
x86_64-darwin-20
41-
x86_64-linux
4247

4348
DEPENDENCIES
4449
rubocop-discourse
4550
syntax_tree
4651

4752
BUNDLED WITH
48-
2.3.10
53+
2.5.4

‎package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name":"discourse-oauth2-basic",
3-
"version":"1.0.0",
4-
"repository":"https://github.com/discourse/discourse-oauth2-basic",
5-
"author":"Discourse",
6-
"license":"MIT",
3+
"private":true,
74
"devDependencies": {
8-
"eslint-config-discourse":"^3.4.0"
5+
"@discourse/lint-configs":"^1.3.5",
6+
"ember-template-lint":"^5.13.0",
7+
"eslint":"^8.56.0",
8+
"prettier":"^2.8.8"
99
}
1010
}

‎plugin.rb‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# version: 0.3
77
# authors: Robin Ward
88
# url: https://github.com/discourse/discourse-oauth2-basic
9-
# transpile_js: true
109

1110
enabled_site_setting:oauth2_enabled
1211

‎spec/plugin_spec.rb‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@
7474
{status:200,body:'{"account":{"email":"newemail@example.com"}}'}
7575
end
7676

77-
let(:fail_response)do
78-
{status:403}
79-
end
77+
let(:fail_response){{status:403}}
8078

8179
it"works"do
8280
stub_request(:get,SiteSetting.oauth2_user_json_url).to_return(success_response)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp