forked from mozilla/fxa-content-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lint): switch from JSHint to ESLint
Fixes mozilla#2550 Switch from JSHint to ESLint Also have JSHint in parallel
- Loading branch information
Showing
23 changed files
with
176 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.tmp/** | ||
app/bower_components/** | ||
app/scripts/vendor/** | ||
dist/** |
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,52 @@ | ||
{ | ||
"env": { | ||
"amd": true, | ||
"es6": true, | ||
"jasmine": true, | ||
"node": true, | ||
"mocha": true, | ||
"browser": true, | ||
"builtin": true | ||
}, | ||
"rules": { | ||
"camelcase": 0, | ||
"comma-dangle": 0, | ||
"complexity": [2, 6], | ||
"consistent-return": 0, | ||
"curly": [2, "all"], | ||
"dot-notation": 0, | ||
"eqeqeq": [2, "allow-null"], | ||
"global-strict": [0, "never"], | ||
"globals": { | ||
"define": true, | ||
"Promise": true | ||
}, | ||
"handle-callback-err": 0, | ||
"key-spacing": 0, | ||
"new-cap": 0, | ||
"no-cond-assign": [2, "except-parens"], | ||
"no-debugger": 2, | ||
"no-empty": 0, | ||
"no-eval": 2, | ||
"no-irregular-whitespace": 2, | ||
"no-loop-func": 0, | ||
"no-multi-spaces": 0, | ||
"no-new": 2, | ||
"no-script-url": 2, | ||
"no-sequences": 2, | ||
"no-shadow": 0, | ||
"no-spaced-func": 0, | ||
"no-undef": 2, | ||
"no-underscore-dangle": 0, | ||
"no-unused-vars": [1, {vars: all, args: none}], | ||
"no-use-before-define": true, | ||
"no-with": 2, | ||
"quotes": [2, "single"], | ||
"semi": [2, "always"], | ||
"space-unary-ops": 0, | ||
"strict": 2, | ||
"valid-typeof": 1, | ||
"wrap-iife": 0, | ||
"yoda": 0 | ||
} | ||
} |
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,58 @@ | ||
{ | ||
"env": { | ||
"amd": true, | ||
"es6": true, | ||
"jasmine": true, | ||
"jquery": true, | ||
"node": true, | ||
"mocha": true, | ||
"browser": true, | ||
"builtin": true | ||
}, | ||
"rules": { | ||
"camelcase": 0, | ||
"complexity": [2, 6], | ||
"consistent-return": 0, | ||
"curly": [2, "all"], | ||
"dot-notation": 0, | ||
"eqeqeq": [2, "allow-null"], | ||
"globals": { | ||
"console": false, | ||
"define": true, | ||
"require": false, | ||
"router": false, | ||
"afterEach": false, | ||
"beforeEach": false, | ||
"describe": false, | ||
"it": false | ||
}, | ||
"handle-callback-err": 0, | ||
"key-spacing": 0, | ||
"new-cap": 0, | ||
"no-bitwise": 2, | ||
"no-caller": 2, | ||
"no-cond-assign": [2, "except-parens"], | ||
"no-debugger": 2, | ||
"no-empty": 2, | ||
"no-eval": 2, | ||
"no-extend-native": 2, | ||
"no-irregular-whitespace": 2, | ||
"no-loop-func": 0, | ||
"no-multi-str": 2, | ||
"no-new": 2, | ||
"no-proto": 2, | ||
"no-script-url": 2, | ||
"no-sequences": 2, | ||
"no-shadow": 0, | ||
"no-spaced-func": 0, | ||
"no-undef": 2, | ||
"no-unused-vars": [1, {vars: all, args: none}], | ||
"no-use-before-define": true, | ||
"no-with": 2, | ||
"quotes": [2, "single"], | ||
"semi": [2, "always"], | ||
"strict": [2, "global"], | ||
"valid-typeof": 2, | ||
"wrap-iife": 0 | ||
} | ||
} |
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
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
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,32 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
'use strict'; | ||
|
||
module.exports = function (grunt) { | ||
grunt.config('eslint', { | ||
options: { | ||
eslintrc: '.eslintrc' | ||
}, | ||
grunt: [ | ||
'Gruntfile.js', | ||
'grunttasks/*.js' | ||
], | ||
app: { | ||
options: { | ||
eslintrc: '<%= yeoman.app %>/.eslintrc' | ||
}, | ||
src: [ | ||
'<%= yeoman.app %>/**/*.js', | ||
'!<%= yeoman.app %>/bower_components/**', | ||
'!<%= yeoman.app %>/scripts/vendor/**' | ||
] | ||
}, | ||
tests: [ | ||
'<%= yeoman.tests %>/**/*.js' | ||
], | ||
server: [ | ||
'<%= yeoman.server %>/**/*.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
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
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