DEV: Update linting setup and fix issues (#56)
This commit is contained in:
parent
bf07db4916
commit
f901feb023
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"extends": "eslint-config-discourse"
|
"extends": "eslint-config-discourse",
|
||||||
|
"ignorePatterns": ["/public"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
.DS_Store
|
|
||||||
node_modules
|
node_modules
|
||||||
yarn-error.log
|
/gems
|
||||||
.rubocop-https---raw-githubusercontent-com-discourse-*
|
/auto_generated
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/public
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
47
Gemfile.lock
47
Gemfile.lock
|
@ -1,37 +1,42 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
ast (2.4.1)
|
ast (2.4.2)
|
||||||
parallel (1.19.2)
|
parallel (1.22.1)
|
||||||
parser (2.7.1.4)
|
parser (3.1.2.0)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
rainbow (3.0.0)
|
rainbow (3.1.1)
|
||||||
regexp_parser (1.7.1)
|
regexp_parser (2.5.0)
|
||||||
rexml (3.2.5)
|
rexml (3.2.5)
|
||||||
rubocop (0.88.0)
|
rubocop (1.30.1)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 2.7.1.1)
|
parser (>= 3.1.0.0)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.7)
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
rexml
|
rexml (>= 3.2.5, < 4.0)
|
||||||
rubocop-ast (>= 0.1.0, < 1.0)
|
rubocop-ast (>= 1.18.0, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 2.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (0.1.0)
|
rubocop-ast (1.18.0)
|
||||||
parser (>= 2.7.0.1)
|
parser (>= 3.1.1.0)
|
||||||
rubocop-discourse (2.2.0)
|
rubocop-discourse (2.5.0)
|
||||||
rubocop (>= 0.69.0)
|
rubocop (>= 1.1.0)
|
||||||
rubocop-rspec (>= 1.39.0)
|
rubocop-rspec (>= 2.0.0)
|
||||||
rubocop-rspec (1.42.0)
|
rubocop-rspec (2.11.1)
|
||||||
rubocop (>= 0.87.0)
|
rubocop (~> 1.19)
|
||||||
ruby-progressbar (1.10.1)
|
ruby-progressbar (1.11.0)
|
||||||
unicode-display_width (1.7.0)
|
unicode-display_width (2.1.0)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
|
arm64-darwin-20
|
||||||
ruby
|
ruby
|
||||||
|
x86_64-darwin-18
|
||||||
|
x86_64-darwin-19
|
||||||
|
x86_64-darwin-20
|
||||||
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
rubocop-discourse
|
rubocop-discourse
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.1.4
|
2.3.10
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
en:
|
en:
|
||||||
site_settings:
|
site_settings:
|
||||||
discourse_math_enabled: 'Enable Discourse Math plugin (will add special processing to $ and $$ blocks)'
|
discourse_math_enabled: "Enable Discourse Math plugin (will add special processing to $ and $$ blocks)"
|
||||||
discourse_math_provider: 'Default math rendering provider'
|
discourse_math_provider: "Default math rendering provider"
|
||||||
discourse_math_zoom_on_hover: 'Zoom 200% on hover (MathJax only)'
|
discourse_math_zoom_on_hover: "Zoom 200% on hover (MathJax only)"
|
||||||
discourse_math_enable_accessibility: 'Enable accessibility features (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_enable_asciimath: "Enable asciimath (will add special processing to % delimited input) (MathJax only)"
|
||||||
|
|
|
@ -3,7 +3,7 @@ plugins:
|
||||||
default: false
|
default: false
|
||||||
client: true
|
client: true
|
||||||
discourse_math_provider:
|
discourse_math_provider:
|
||||||
default: 'mathjax'
|
default: "mathjax"
|
||||||
client: true
|
client: true
|
||||||
type: enum
|
type: enum
|
||||||
choices:
|
choices:
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
{
|
{
|
||||||
|
"name": "discourse-math",
|
||||||
|
"version": "0.9.0",
|
||||||
|
"repository": "https://github.com/discourse/discourse-math",
|
||||||
"author": "Discourse",
|
"author": "Discourse",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-discourse": "^1.1.8"
|
"eslint-config-discourse": "^3.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue