DEV: Update linting setup and fix issues (#56)

This commit is contained in:
Jarek Radosz 2022-06-17 13:45:36 +02:00 committed by GitHub
parent bf07db4916
commit f901feb023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1254 additions and 902 deletions

View File

@ -1,3 +1,4 @@
{
"extends": "eslint-config-discourse"
"extends": "eslint-config-discourse",
"ignorePatterns": ["/public"]
}

5
.gitignore vendored
View File

@ -1,4 +1,3 @@
.DS_Store
node_modules
yarn-error.log
.rubocop-https---raw-githubusercontent-com-discourse-*
/gems
/auto_generated

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
/public

1
.prettierrc Normal file
View File

@ -0,0 +1 @@
{}

View File

@ -1,37 +1,42 @@
GEM
remote: https://rubygems.org/
specs:
ast (2.4.1)
parallel (1.19.2)
parser (2.7.1.4)
ast (2.4.2)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
rainbow (3.0.0)
regexp_parser (1.7.1)
rainbow (3.1.1)
regexp_parser (2.5.0)
rexml (3.2.5)
rubocop (0.88.0)
rubocop (1.30.1)
parallel (~> 1.10)
parser (>= 2.7.1.1)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.1.0, < 1.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.18.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.1.0)
parser (>= 2.7.0.1)
rubocop-discourse (2.2.0)
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)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.18.0)
parser (>= 3.1.1.0)
rubocop-discourse (2.5.0)
rubocop (>= 1.1.0)
rubocop-rspec (>= 2.0.0)
rubocop-rspec (2.11.1)
rubocop (~> 1.19)
ruby-progressbar (1.11.0)
unicode-display_width (2.1.0)
PLATFORMS
arm64-darwin-20
ruby
x86_64-darwin-18
x86_64-darwin-19
x86_64-darwin-20
x86_64-linux
DEPENDENCIES
rubocop-discourse
BUNDLED WITH
2.1.4
2.3.10

View File

@ -3,8 +3,8 @@
en:
site_settings:
discourse_math_enabled: 'Enable Discourse Math plugin (will add special processing to $ and $$ blocks)'
discourse_math_provider: 'Default math rendering provider'
discourse_math_zoom_on_hover: 'Zoom 200% on hover (MathJax only)'
discourse_math_enable_accessibility: 'Enable accessibility features (MathJax only)'
discourse_math_enable_asciimath: 'Enable asciimath (will add special processing to % delimited input) (MathJax only)'
discourse_math_enabled: "Enable Discourse Math plugin (will add special processing to $ and $$ blocks)"
discourse_math_provider: "Default math rendering provider"
discourse_math_zoom_on_hover: "Zoom 200% on hover (MathJax only)"
discourse_math_enable_accessibility: "Enable accessibility features (MathJax only)"
discourse_math_enable_asciimath: "Enable asciimath (will add special processing to % delimited input) (MathJax only)"

View File

@ -3,7 +3,7 @@ plugins:
default: false
client: true
discourse_math_provider:
default: 'mathjax'
default: "mathjax"
client: true
type: enum
choices:

View File

@ -1,7 +1,10 @@
{
"name": "discourse-math",
"version": "0.9.0",
"repository": "https://github.com/discourse/discourse-math",
"author": "Discourse",
"license": "MIT",
"devDependencies": {
"eslint-config-discourse": "^1.1.8"
"eslint-config-discourse": "^3.2.0"
}
}

2082
yarn.lock

File diff suppressed because it is too large Load Diff