Skip to content

Commit

Permalink
replace jshint with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliosaraiva committed Aug 10, 2017
1 parent 37a0bea commit 2566d70
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 196 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
extends: 'eslint:recommended',
env: {
browser: true,
node: true,
mocha: true
},
rules: {
}
};
5 changes: 0 additions & 5 deletions .jshintignore

This file was deleted.

33 changes: 0 additions & 33 deletions .jshintrc

This file was deleted.

6 changes: 0 additions & 6 deletions blueprints/.jshintrc

This file was deleted.

2 changes: 0 additions & 2 deletions blueprints/ember-cli-deploy/files/config/deploy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* jshint node: true */

module.exports = function(deployTarget) {
var ENV = {
build: {}
Expand Down
2 changes: 1 addition & 1 deletion blueprints/ember-cli-deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
// not specified (since that doesn't actually matter
// to us
},
afterInstall: function(options) {
afterInstall: function() {
this.ui.write(green('ember-cli-deploy needs plugins to actually do the deployment work.\nSee http://ember-cli-deploy.com/docs/v1.0.x/quickstart/\nto learn how to install plugins and see what plugins are available.\n'));
}
};
1 change: 0 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function(defaults) {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/plugin-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ module.exports = CoreObject.extend({

_pluginName: function(addon) {
if(addon.name.indexOf('ember-cli-deploy') > -1) {
var pluginNameRegex = /^(ember\-cli\-deploy\-)(.*)$/;
var pluginNameRegex = /^(ember-cli-deploy-)(.*)$/;
return addon.name.match(pluginNameRegex)[2];
}
return addon.name;
Expand Down
38 changes: 0 additions & 38 deletions node-tests/.jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion node-tests/fixtures/config/empty.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* jshint unused:false */
/* eslint-disable no-unused-vars */

module.exports = function(environment) {
var ENV = {};
Expand Down
8 changes: 8 additions & 0 deletions node-tests/unit/eslint-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var lint = require('mocha-eslint');
lint([
'node-tests',
'lib',
'bin',
'index.js',
'blueprints'
])
1 change: 0 additions & 1 deletion node-tests/unit/jshint-test.js

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"chai": "^1.9.2",
"chai-as-promised": "^4.1.1",
"ember-cli": "^2.10.0",
"ember-cli-eslint": "^4.2.0",
"ember-cli-release": "0.2.9",
"github": "0.2.3",
"mocha": "^2.0.1",
"mocha-jshint": "^2.2.6"
"mocha-eslint": "^4.1.0"
},
"keywords": [
"ember-addon",
Expand Down
5 changes: 5 additions & 0 deletions tests/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
env: {
embertest: true
}
};
74 changes: 0 additions & 74 deletions tests/.jshintrc

This file was deleted.

32 changes: 0 additions & 32 deletions tests/dummy/.jshintrc

This file was deleted.

0 comments on commit 2566d70

Please sign in to comment.