Skip to content

Commit

Permalink
Replace jshint with eslint and fix resulting errors.
Browse files Browse the repository at this point in the history
One of these was a fatal error, introduced in dependents#57
  • Loading branch information
realityking authored and mrjoelkemp committed Sep 1, 2018
1 parent 36368b5 commit 800858d
Show file tree
Hide file tree
Showing 7 changed files with 1,072 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"rules": {
"no-undef": 2,
"no-unused-vars": 2,
"no-const-assign": 2
},
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 2015
}
}
3 changes: 0 additions & 3 deletions .jshintrc

This file was deleted.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = function cabinet(options) {
ast
} = options;
const ext = path.extname(filename);
const resolver = defaultLookups[ext];
let resolver = defaultLookups[ext];

if (!resolver) {
debug('using generic resolver');
Expand Down Expand Up @@ -164,7 +164,7 @@ function jsLookup(partial, filename, directory, config, webpackConfig, configPat
}
}

function tsLookup(partial, filename, directory) {
function tsLookup(partial, filename) {
debug('performing a typescript lookup');

if (!ts) {
Expand Down
Loading

0 comments on commit 800858d

Please sign in to comment.