Galooshi / atom-import-js

Atom plugin for ImportJS
MIT License
36 stars 3 forks source link

plugin doesn't see my .importjs.js file #29

Closed sidequestboy closed 6 years ago

sidequestboy commented 6 years ago

my config looks like this:

module.exports = {
  declarationKeyword: 'import',
  environments: ['meteor', 'node'],
};

when I type "Meteor" in a .js file, and hit cmd+shift+j, it adds the line:

const { Meteor } = require('meteor/meteor');

but what I want it to add is

import { Meteor } from 'meteor/meteor';
sidequestboy commented 6 years ago

I just noticed that the default config for this package is for declarationKeyword to be require, so I'm thinking the plugin just isn't picking up my .importjs.js config file... I have it in the root of my project folder.

sidequestboy commented 6 years ago

So, I closed my project, went File->New Window, went File->Add Project Folder, and my problem is fixed.

trotzig commented 6 years ago

Thanks for following up!