Skip to content

Commit

Permalink
Make sure the rules directory is resolved correctly (#175)
Browse files Browse the repository at this point in the history
Works around buggy `import-modules` directory resolution in Atom.

Fixes sindresorhus/atom-linter-xo#74
  • Loading branch information
Rowno authored and sindresorhus committed Jun 17, 2017
1 parent a70271e commit d1952fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use strict';
const path = require('path');
const importModules = require('import-modules');

module.exports = {
rules: importModules('rules', {camelize: false}),
rules: importModules(path.resolve(__dirname, 'rules'), {camelize: false}),
configs: {
recommended: {
env: {
Expand Down

0 comments on commit d1952fb

Please sign in to comment.