-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from phase2/feature/eslint-support
Add ESLint support with grunt-eslint
- Loading branch information
Showing
11 changed files
with
137 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## | ||
# This file instructs eslint to skip certain directories in it's analysis. | ||
# | ||
# It is not needed by grunt-drupal-tasks but is intended to make direct use | ||
# of eslint more effective. | ||
# | ||
# @see http://eslint.org/docs/user-guide/configuring.html | ||
## | ||
|
||
# node_modules ignored by default | ||
|
||
# Ignore composer and bundler managed dependencies | ||
vendor/**/* | ||
|
||
# Ignore generated files and upstream dependencies via Drush Make | ||
build/**/* | ||
|
||
# Ignore JS in the Drupal files directory such as aggregations. | ||
src/sites/**/files/**/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"env": { | ||
"browser": true | ||
}, | ||
"globals": { | ||
"Drupal": true, | ||
"jQuery": true, | ||
"tinyMCE": true | ||
}, | ||
"rules": { | ||
"eqeqeq": [2, "smart"], | ||
"guard-for-in": 2, | ||
"no-undef": 2, | ||
//"no-unused-vars": [2, {"vars": "local", "args": "none"}], | ||
"no-unused-vars": 0, | ||
"strict": 0, | ||
"new-cap": 0, | ||
"quotes": 0, | ||
"camelcase": 0, | ||
"no-underscore-dangle": 0, | ||
"no-new": 0, | ||
"no-alert": 0, | ||
"no-use-before-define": 0, | ||
"consistent-return": 0, | ||
"no-constant-condition": 0, | ||
"no-comma-dangle" : 2, | ||
"no-catch-shadow" : 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,6 @@ | |
}, | ||
"behat": { | ||
"flags": "--tags ~@wip" | ||
} | ||
}, | ||
"eslint": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
var test = "hi"; | ||
|
||
if (test == 'hello') { | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
var test = "hi"; | ||
|
||
if (test == 'hello') { | ||
} | ||
|