build: Update linters
Change-Id: I20e4794d0f565a284917f35d15736e3f33523856
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": "wikimedia",
|
"extends": "wikimedia",
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true
|
||||||
"qunit": true
|
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"$": false,
|
"$": false,
|
||||||
@@ -10,6 +9,7 @@
|
|||||||
"OO": false
|
"OO": false
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"dot-notation": [ "error", { "allowKeywords": true } ]
|
"dot-notation": [ "error", { "allowKeywords": true } ],
|
||||||
|
"max-len": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
package.json
13
package.json
@@ -4,15 +4,16 @@
|
|||||||
"test": "grunt test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.5.0",
|
"eslint-config-wikimedia": "0.7.2",
|
||||||
"grunt": "1.0.1",
|
"eslint-plugin-qunit": "3.3.1",
|
||||||
|
"grunt": "1.0.3",
|
||||||
"grunt-banana-checker": "0.6.0",
|
"grunt-banana-checker": "0.6.0",
|
||||||
"grunt-eslint": "20.1.0",
|
"grunt-eslint": "21.0.0",
|
||||||
"grunt-jsonlint": "1.1.0",
|
"grunt-jsonlint": "1.1.0",
|
||||||
"grunt-stylelint": "0.9.0",
|
"grunt-stylelint": "0.10.1",
|
||||||
"grunt-svgmin": "5.0.0",
|
"grunt-svgmin": "5.0.0",
|
||||||
"stylelint": "8.2.0",
|
"stylelint": "9.2.0",
|
||||||
"stylelint-config-wikimedia": "0.4.2"
|
"stylelint-config-wikimedia": "0.4.3"
|
||||||
},
|
},
|
||||||
"eslintIgnore": [
|
"eslintIgnore": [
|
||||||
"lib/**",
|
"lib/**",
|
||||||
|
|||||||
9
tests/qunit/.eslintrc.json
Normal file
9
tests/qunit/.eslintrc.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"wikimedia/qunit",
|
||||||
|
"../../.eslintrc.json"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"qunit": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -63,7 +63,9 @@
|
|||||||
assert.ok( successSave, 'Options saving API did not produce an error.' );
|
assert.ok( successSave, 'Options saving API did not produce an error.' );
|
||||||
// Delete old options
|
// Delete old options
|
||||||
prefs.set( prefName, undefined );
|
prefs.set( prefName, undefined );
|
||||||
prefs.save( done );
|
prefs.save( function () {
|
||||||
|
done();
|
||||||
|
} );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user