build: Update linters

Change-Id: I20e4794d0f565a284917f35d15736e3f33523856
This commit is contained in:
Ed Sanders
2018-09-08 11:17:15 +01:00
committed by jenkins-bot
parent 53769b2084
commit 2024009482
4 changed files with 22 additions and 10 deletions

View File

@@ -1,8 +1,7 @@
{
"extends": "wikimedia",
"env": {
"browser": true,
"qunit": true
"browser": true
},
"globals": {
"$": false,
@@ -10,6 +9,7 @@
"OO": false
},
"rules": {
"dot-notation": [ "error", { "allowKeywords": true } ]
"dot-notation": [ "error", { "allowKeywords": true } ],
"max-len": 0
}
}

View File

@@ -4,15 +4,16 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.5.0",
"grunt": "1.0.1",
"eslint-config-wikimedia": "0.7.2",
"eslint-plugin-qunit": "3.3.1",
"grunt": "1.0.3",
"grunt-banana-checker": "0.6.0",
"grunt-eslint": "20.1.0",
"grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.9.0",
"grunt-stylelint": "0.10.1",
"grunt-svgmin": "5.0.0",
"stylelint": "8.2.0",
"stylelint-config-wikimedia": "0.4.2"
"stylelint": "9.2.0",
"stylelint-config-wikimedia": "0.4.3"
},
"eslintIgnore": [
"lib/**",

View File

@@ -0,0 +1,9 @@
{
"extends": [
"wikimedia/qunit",
"../../.eslintrc.json"
],
"env": {
"qunit": true
}
}

View File

@@ -63,7 +63,9 @@
assert.ok( successSave, 'Options saving API did not produce an error.' );
// Delete old options
prefs.set( prefName, undefined );
prefs.save( done );
prefs.save( function () {
done();
} );
} );
} );