eslint: Lint all files except those in .eslintignore

Fix resulting errors (mostly useless escape in i18n files).

Change-Id: Id29c6aecece75d4a462bddb7e547ca5b4eb5c2db
This commit is contained in:
Ed Sanders 2022-04-13 15:44:49 +01:00
parent 699899c8c4
commit c9046685fa
5 changed files with 24 additions and 13 deletions

11
.eslintignore Normal file
View file

@ -0,0 +1,11 @@
# Upstream code
/lib/
# Build
/vendor/
/docs/
# Language files written automatically by TranslateWiki
/i18n/**/*.json
!/i18n/**/en.json
!/i18n/**/qqq.json

View file

@ -149,10 +149,7 @@ module.exports = function ( grunt ) {
cache: true, cache: true,
fix: grunt.option( 'fix' ) fix: grunt.option( 'fix' )
}, },
all: [ all: [ '.' ]
'*.{js,json}',
'{build,modules}/**/*.{js,json}'
]
}, },
stylelint: { stylelint: {
options: { options: {

View file

@ -394,14 +394,14 @@
"visualeditor-parameter-search-unknown": "(Unknown field)", "visualeditor-parameter-search-unknown": "(Unknown field)",
"visualeditor-preference-betatempdisable": "Temporarily disable the visual editor while it is in beta", "visualeditor-preference-betatempdisable": "Temporarily disable the visual editor while it is in beta",
"visualeditor-preference-core-description": "Enable the visual editor. It will not be available on talk pages and some other namespaces.", "visualeditor-preference-core-description": "Enable the visual editor. It will not be available on talk pages and some other namespaces.",
"visualeditor-preference-core-discussion-link": "\/\/mediawiki.org\/wiki\/Special:MyLanguage\/VisualEditor\/Feedback", "visualeditor-preference-core-discussion-link": "//mediawiki.org/wiki/Special:MyLanguage/VisualEditor/Feedback",
"visualeditor-preference-core-info-link": "\/\/mediawiki.org\/wiki\/Special:MyLanguage\/VisualEditor\/Beta_Features\/General", "visualeditor-preference-core-info-link": "//mediawiki.org/wiki/Special:MyLanguage/VisualEditor/Beta_Features/General",
"visualeditor-preference-core-label": "Visual editing", "visualeditor-preference-core-label": "Visual editing",
"visualeditor-preference-enable": "Enable the visual editor. It will be available in the following {{PLURAL:$2|namespace|namespaces}}: $1", "visualeditor-preference-enable": "Enable the visual editor. It will be available in the following {{PLURAL:$2|namespace|namespaces}}: $1",
"visualeditor-preference-newwikitexteditor-description": "Enable the new wikitext mode inside the visual editor. It has many of the tools present in the visual editor, uses a similar design, and allows better switching between the two.", "visualeditor-preference-newwikitexteditor-description": "Enable the new wikitext mode inside the visual editor. It has many of the tools present in the visual editor, uses a similar design, and allows better switching between the two.",
"visualeditor-preference-newwikitexteditor-discussion-link": "\/\/mediawiki.org\/wiki\/2017_wikitext_editor\/Feedback", "visualeditor-preference-newwikitexteditor-discussion-link": "//mediawiki.org/wiki/2017_wikitext_editor/Feedback",
"visualeditor-preference-newwikitexteditor-enable": "Use the wikitext mode inside the visual editor, instead of a different wikitext editor.", "visualeditor-preference-newwikitexteditor-enable": "Use the wikitext mode inside the visual editor, instead of a different wikitext editor.",
"visualeditor-preference-newwikitexteditor-info-link": "\/\/mediawiki.org\/wiki\/Special:MyLanguage\/2017 wikitext editor", "visualeditor-preference-newwikitexteditor-info-link": "//mediawiki.org/wiki/Special:MyLanguage/2017 wikitext editor",
"visualeditor-preference-newwikitexteditor-label": "New wikitext mode", "visualeditor-preference-newwikitexteditor-label": "New wikitext mode",
"visualeditor-preference-tabs": "Editing mode:", "visualeditor-preference-tabs": "Editing mode:",
"visualeditor-preference-tabs-multi-tab": "Show me both editor tabs", "visualeditor-preference-tabs-multi-tab": "Show me both editor tabs",
@ -409,8 +409,8 @@
"visualeditor-preference-tabs-prefer-wt": "Always give me the source editor", "visualeditor-preference-tabs-prefer-wt": "Always give me the source editor",
"visualeditor-preference-tabs-remember-last": "Remember my last editor", "visualeditor-preference-tabs-remember-last": "Remember my last editor",
"visualeditor-preference-visualdiffpage-description": "Enable the new visual mode on revision difference pages.", "visualeditor-preference-visualdiffpage-description": "Enable the new visual mode on revision difference pages.",
"visualeditor-preference-visualdiffpage-discussion-link": "\/\/www.mediawiki.org\/wiki\/Talk:VisualEditor\/Diffs", "visualeditor-preference-visualdiffpage-discussion-link": "//www.mediawiki.org/wiki/Talk:VisualEditor/Diffs",
"visualeditor-preference-visualdiffpage-info-link": "\/\/www.mediawiki.org\/wiki\/Special:MyLanguage\/VisualEditor\/Diffs", "visualeditor-preference-visualdiffpage-info-link": "//www.mediawiki.org/wiki/Special:MyLanguage/VisualEditor/Diffs",
"visualeditor-preference-visualdiffpage-label": "Visual differences", "visualeditor-preference-visualdiffpage-label": "Visual differences",
"visualeditor-quick-access-characters.json": "null", "visualeditor-quick-access-characters.json": "null",
"visualeditor-rebase-client-export": "Export", "visualeditor-rebase-client-export": "Export",

View file

@ -24,11 +24,11 @@
"tag-visualeditor-wikitext-description": "Edit made using the 2017 wikitext editor", "tag-visualeditor-wikitext-description": "Edit made using the 2017 wikitext editor",
"tag-visualeditor-switched": "[[{{MediaWiki:visualeditor-descriptionpagelink}}|Visual edit: Switched]]", "tag-visualeditor-switched": "[[{{MediaWiki:visualeditor-descriptionpagelink}}|Visual edit: Switched]]",
"tag-visualeditor-switched-description": "User started to edit using the visual editor, then changed to the wikitext editor.", "tag-visualeditor-switched-description": "User started to edit using the visual editor, then changed to the wikitext editor.",
"visualeditor-feedback-link": "Project:VisualEditor\/Feedback", "visualeditor-feedback-link": "Project:VisualEditor/Feedback",
"visualeditor-feedback-source-link": "{{int:visualeditor-feedback-link}}", "visualeditor-feedback-source-link": "{{int:visualeditor-feedback-link}}",
"visualeditor-feedback-tool": "Leave feedback about this software", "visualeditor-feedback-tool": "Leave feedback about this software",
"visualeditor-help-label": "Read the user guide", "visualeditor-help-label": "Read the user guide",
"visualeditor-help-link": "mw:Special:MyLanguage\/Help:VisualEditor\/User guide", "visualeditor-help-link": "mw:Special:MyLanguage/Help:VisualEditor/User guide",
"visualeditor-help-title": "Guide for how to use the editor", "visualeditor-help-title": "Guide for how to use the editor",
"visualeditor-welcomedialog-action": "Start editing", "visualeditor-welcomedialog-action": "Start editing",
"visualeditor-welcomedialog-content": "Anyone can edit, and every improvement helps.", "visualeditor-welcomedialog-content": "Anyone can edit, and every improvement helps.",

View file

@ -2,5 +2,8 @@
"root": true, "root": true,
"extends": [ "extends": [
"wikimedia/selenium" "wikimedia/selenium"
] ],
"globals": {
"mw": "readonly"
}
} }