Skip to content

Commit d83fe5f

Browse files
committed
MarkdownBear: Rename remark_configs_plugins
Rename `remark_configs_plugins` to `remark_lint_configs` because the latter is more appropriate and future addition of plugins may conflict with the former name.
1 parent 2a21048 commit d83fe5f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bears/markdown/MarkdownBear.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,21 @@ def create_arguments(filename, file, config_file,
130130
'ruleSpaces': horizontal_rule_spaces, # Bool
131131
'ruleRepetition': horizontal_rule_repeat, # int
132132
}
133-
remark_configs_plugins = {}
133+
remark_lint_configs = {}
134134

135135
if max_line_length:
136-
remark_configs_plugins['maximumLineLength'] = max_line_length
136+
remark_lint_configs['maximumLineLength'] = max_line_length
137137

138138
config_json = json.dumps(remark_configs_settings)
139139
# Remove { and } as remark adds them on its own
140140
settings = config_json[1:-1]
141141

142142
args = [filename, '--no-color', '--quiet', '--setting', settings]
143143

144-
if remark_configs_plugins:
145-
config_json = json.dumps(remark_configs_plugins)
146-
plugins = 'lint=' + config_json[1:-1]
147-
args += ['--use', plugins]
144+
if remark_lint_configs:
145+
config_json = json.dumps(remark_lint_configs)
146+
lint = 'lint=' + config_json[1:-1]
147+
args += ['--use', lint]
148148

149149
if check_links:
150150
args += ['--use', 'validate-links']

0 commit comments

Comments
 (0)