eslint: Lint root folder with server rules

Change-Id: I372eef293983bff0c79ad8aa0da1c7e5d07b1e44
This commit is contained in:
Ed Sanders 2021-10-07 14:18:56 +01:00
parent 02642e48dd
commit 605e7322b8
4 changed files with 15 additions and 9 deletions

View file

@ -1,14 +1,8 @@
{ {
"root": true, "root": true,
"extends": [ "extends": [
"wikimedia/client-es5", "wikimedia/server"
"wikimedia/jquery",
"wikimedia/mediawiki"
], ],
"globals": {
"ve": "readonly",
"RangeFix": "readonly"
},
"overrides": [ "overrides": [
{ {
"files": [ "files": [

View file

@ -1,7 +1,7 @@
/* eslint-env node, es6 */ 'use strict';
module.exports = function ( grunt ) { module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' ); const conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' ); grunt.loadNpmTasks( 'grunt-stylelint' );

View file

@ -1,4 +1,14 @@
{ {
"root": true,
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"globals": {
"ve": "readonly",
"RangeFix": "readonly"
},
"rules": { "rules": {
"no-implicit-globals": "off", "no-implicit-globals": "off",
"max-len": "off" "max-len": "off"

View file

@ -1,5 +1,7 @@
{ {
"root": true,
"extends": [ "extends": [
"../../modules/.eslintrc.json",
"wikimedia/qunit" "wikimedia/qunit"
], ],
"rules": { "rules": {