Permalink
Browse files

Migrate to ESLint

  • Loading branch information...
1 parent 884d2a5 commit f639a017628f7c11793f094c7993909f5751124b @Craga89 Craga89 committed Dec 8, 2015
Showing with 108 additions and 5 deletions.
  1. +106 −0 .eslintrc
  2. +1 −1 grunt/aliases.js
  3. +1 −1 grunt/clean.js
  4. +0 −3 grunt/{jshint.js → eslint.js}
View
@@ -0,0 +1,106 @@
+{
+ "env": {
+ "node": true,
+ "browser": true,
+ "builtin": true
+ },
+ "globals": {
+ "jQuery": true,
+ "$": true,
+ "QTip": true,
+ "TRUE": true,
+ "FALSE": true,
+ "NULL": true,
+ "WIDTH": true,
+ "HEIGHT": true,
+ "TOP": true,
+ "LEFT": true,
+ "BOTTOM": true,
+ "RIGHT": true,
+ "X": true,
+ "Y": true,
+ "CENTER": true,
+ "FLIP": true,
+ "FLIPINVERT": true,
+ "SHIFT": true,
+ "QTIP": true,
+ "PROTOTYPE": true,
+ "CORNER": true,
+ "CHECKS": true,
+ "PLUGINS": true,
+ "NAMESPACE": true,
+ "ATTR_HAS": true,
+ "ATTR_ID": true,
+ "WIDGET": true,
+ "SELECTOR": true,
+ "INACTIVE_EVENTS": true,
+ "CLASS_FIXED": true,
+ "CLASS_DEFAULT": true,
+ "CLASS_FOCUS": true,
+ "CLASS_HOVER": true,
+ "CLASS_DISABLED": true,
+ "BROWSER": true,
+ "replaceSuffix": true,
+ "oldtitle": true,
+ "trackingBound": true,
+ "createWidgetClass": true,
+ "sanitizeOptions": true,
+ "cloneEvent": true
+ },
+ "rules": {
+ "block-scoped-var": 2,
+ "camelcase": 2,
+ "curly": [
+ 2,
+ "all"
+ ],
+ "dot-notation": [
+ 2,
+ {
+ "allowKeywords": true
+ }
+ ],
+ "eqeqeq": [
+ 2,
+ "allow-null"
+ ],
+ "strict": [
+ 2,
+ "never"
+ ],
+ "guard-for-in": 2,
+ "new-cap": 2,
+ "no-bitwise": 2,
+ "no-caller": 2,
+ "no-debugger": 2,
+ "no-empty": 2,
+ "no-eval": 2,
+ "no-extend-native": 2,
+ "no-extra-parens": 2,
+ "no-irregular-whitespace": 2,
+ "no-iterator": 2,
+ "no-loop-func": 2,
+ "no-multi-str": 2,
+ "no-new": 2,
+ "no-proto": 2,
+ "no-script-url": 2,
+ "no-sequences": 2,
+ "no-shadow": 2,
+ "no-undef": 2,
+ "no-unused-vars": 2,
+ "no-with": 2,
+ "quotes": [
+ 2,
+ "single"
+ ],
+ "semi": [
+ 0,
+ "never"
+ ],
+ "valid-typeof": 2,
+ "wrap-iife": [
+ 2,
+ "inside"
+ ]
+ }
+}
View
@@ -15,7 +15,7 @@ function alias(basic) {
module.exports = {
default: alias('clean'),
basic: alias(true, 'clean'),
- dev: alias('clean', 'jshint', 'csslint'),
+ dev: alias('clean', 'eslint', 'csslint'),
all: alias('clean').concat( alias(true) ),
css: alias('clean', 'csslint', 'concat:css', 'cssmin', 'replace'),
View
@@ -1,3 +1,3 @@
'use strict';
-module.exports = ['<%=dirs.dist%>/*.*', '<%=dirs.dist%>/basic/*.*'];
+module.exports = ['<%=dirs.dist%>/**/*.*'];
@@ -1,9 +1,6 @@
'use strict';
module.exports = {
- options: {
- jshintrc: true
- },
beforeconcat: [
'grunt.js', '<%=dirs.src%>/*/*.js',
'!<%=dirs.src%>/*/intro.js', '!<%=dirs.src%>/*/outro.js' // Ignore intro/outro files

0 comments on commit f639a01

Please sign in to comment.