Update linters

* Update eslint and stylelint config
* Fix Gruntfile.js to actually run stylelint
This commit is contained in:
Ed Sanders
2019-11-12 15:06:40 +00:00
committed by Niklas Laxström
parent c4f0fdab15
commit d53beca719
15 changed files with 737 additions and 1308 deletions

7
test/.eslintrc.json Normal file
View File

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

View File

@@ -18,11 +18,6 @@
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-1.14.0.css">
<script src="https://code.jquery.com/qunit/qunit-1.14.0.js"></script>
<!-- Test config -->
<script>
QUnit.config.requireExpects = true;
</script>
<!-- Test Suite -->
<script src="jquery.uls.test.js"></script>

View File

@@ -16,9 +16,9 @@
( function ( $ ) {
'use strict';
module( 'jquery.uls' );
QUnit.module( 'jquery.uls' );
test( '-- Initial check', 1, function ( assert ) {
QUnit.test( '-- Initial check', function ( assert ) {
assert.ok( $.fn.uls, '$.fn.uls is defined' );
} );