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,
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
"wikimedia/server"
],
"globals": {
"ve": "readonly",
"RangeFix": "readonly"
},
"overrides": [
{
"files": [

View file

@ -1,7 +1,7 @@
/* eslint-env node, es6 */
'use strict';
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-eslint' );
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": {
"no-implicit-globals": "off",
"max-len": "off"

View file

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