mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
eslint: Lint root folder with server rules
Change-Id: I372eef293983bff0c79ad8aa0da1c7e5d07b1e44
This commit is contained in:
parent
02642e48dd
commit
605e7322b8
|
@ -1,14 +1,8 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"wikimedia/client-es5",
|
||||
"wikimedia/jquery",
|
||||
"wikimedia/mediawiki"
|
||||
"wikimedia/server"
|
||||
],
|
||||
"globals": {
|
||||
"ve": "readonly",
|
||||
"RangeFix": "readonly"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"../../modules/.eslintrc.json",
|
||||
"wikimedia/qunit"
|
||||
],
|
||||
"rules": {
|
||||
|
|
Loading…
Reference in a new issue