mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-66265 javascript: Add jshint ignore for ES6 files in root dir
This commit is contained in:
parent
6fd3764d99
commit
27829f24e1
3 changed files with 3 additions and 1 deletions
|
@ -203,7 +203,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ["**/amd/src/*.js"],
|
files: ["**/amd/src/*.js", "*.js"],
|
||||||
// Check AMD with some slightly stricter rules.
|
// Check AMD with some slightly stricter rules.
|
||||||
rules: {
|
rules: {
|
||||||
'no-unused-vars': 'error',
|
'no-unused-vars': 'error',
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
**/amd/**
|
**/amd/**
|
||||||
|
/*.js
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
* Grunt configuration
|
* Grunt configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-env node */
|
||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
var path = require('path'),
|
var path = require('path'),
|
||||||
tasks = {},
|
tasks = {},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue