mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-23 14:56:43 +00:00
build: Update linters
Change-Id: Idaed1bf627d8d92968b422ad428acd29a179d94a
This commit is contained in:
parent
bf0ba2f20c
commit
1528c7740f
11
.eslintignore
Normal file
11
.eslintignore
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Upstream code
|
||||||
|
/modules/ace/
|
||||||
|
|
||||||
|
# Build
|
||||||
|
/vendor/
|
||||||
|
/docs/
|
||||||
|
|
||||||
|
# Language files written automatically by TranslateWiki
|
||||||
|
**/i18n/**/*.json
|
||||||
|
!**/i18n/**/en.json
|
||||||
|
!**/i18n/**/qqq.json
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
"extends": "stylelint-config-wikimedia",
|
"extends": [
|
||||||
|
"stylelint-config-wikimedia/support-modern",
|
||||||
|
"stylelint-config-wikimedia/mediawiki"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"declaration-property-unit-disallowed-list": null
|
"declaration-property-unit-disallowed-list": null
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,11 +21,7 @@ module.exports = function ( grunt ) {
|
||||||
cache: true,
|
cache: true,
|
||||||
fix: grunt.option( 'fix' )
|
fix: grunt.option( 'fix' )
|
||||||
},
|
},
|
||||||
all: [
|
all: [ '.' ]
|
||||||
'**/*.{js,json}',
|
|
||||||
'!modules/ace/**',
|
|
||||||
'!{vendor,node_modules}/**'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
stylelint: {
|
stylelint: {
|
||||||
all: [
|
all: [
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
/* Ace Editor customizations */
|
/* Ace Editor customizations */
|
||||||
|
|
||||||
|
/* stylelint-disable selector-class-pattern */
|
||||||
|
|
||||||
// T271956
|
// T271956
|
||||||
.ace_gutter-cell {
|
.ace_gutter-cell {
|
||||||
color: #72777d;
|
color: #72777d;
|
||||||
|
|
|
@ -38,7 +38,9 @@
|
||||||
textSelectionFn,
|
textSelectionFn,
|
||||||
hasErrorsOnSave = false,
|
hasErrorsOnSave = false,
|
||||||
selectedLine = 0,
|
selectedLine = 0,
|
||||||
returnFalse = function () { return false; },
|
returnFalse = function () {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
api = new mw.Api();
|
api = new mw.Api();
|
||||||
|
|
||||||
// Initialize state
|
// Initialize state
|
||||||
|
@ -413,10 +415,12 @@
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// Use jQuery UI resizable() so that users can make the box taller
|
// Use jQuery UI resizable() so that users can make the box taller
|
||||||
|
// eslint-disable-next-line es-x/no-resizable-and-growable-arraybuffers
|
||||||
container.resizable( {
|
container.resizable( {
|
||||||
handles: 's',
|
handles: 's',
|
||||||
minHeight: $box.height(),
|
minHeight: $box.height(),
|
||||||
resize: function () {
|
resize: function () {
|
||||||
|
// eslint-disable-next-line es-x/no-resizable-and-growable-arraybuffers
|
||||||
context.codeEditor.resize();
|
context.codeEditor.resize();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
@import 'mediawiki.mixins';
|
@import 'mediawiki.mixins';
|
||||||
|
|
||||||
|
/* stylelint-disable selector-class-pattern */
|
||||||
|
|
||||||
.group-codeeditor-format,
|
.group-codeeditor-format,
|
||||||
.group-codeeditor-style,
|
.group-codeeditor-style,
|
||||||
.codeEditor-ui-toolbar .group-insert,
|
.codeEditor-ui-toolbar .group-insert,
|
||||||
|
|
3228
package-lock.json
generated
3228
package-lock.json
generated
File diff suppressed because it is too large
Load diff
12
package.json
12
package.json
|
@ -8,14 +8,14 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ace-builds": "1.15.2",
|
"ace-builds": "1.15.2",
|
||||||
"eslint-config-wikimedia": "0.25.0",
|
"eslint-config-wikimedia": "0.26.0",
|
||||||
"grunt": "1.6.1",
|
"grunt": "1.6.1",
|
||||||
"grunt-banana-checker": "0.11.0",
|
"grunt-banana-checker": "0.11.1",
|
||||||
"grunt-contrib-clean": "2.0.0",
|
"grunt-contrib-clean": "2.0.1",
|
||||||
"grunt-contrib-copy": "1.0.0",
|
"grunt-contrib-copy": "1.0.0",
|
||||||
"grunt-eslint": "24.0.1",
|
"grunt-eslint": "24.3.0",
|
||||||
"grunt-exec": "3.0.0",
|
"grunt-exec": "3.0.0",
|
||||||
"grunt-stylelint": "0.18.0",
|
"grunt-stylelint": "0.19.0",
|
||||||
"stylelint-config-wikimedia": "0.15.0"
|
"stylelint-config-wikimedia": "0.16.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue