sindresorhus / atom-fixmyjs

[DEPRECATED] Automagically fix JSHint lint warnings
https://atom.io/packages/fixmyjs
MIT License
86 stars 5 forks source link

Have not been able to make it work #11

Closed kristianmandrup closed 6 years ago

kristianmandrup commented 9 years ago

Have tried installing via apm:

apm install fixmyjs

If I go to manage packages I can see it is enabled, however I have not managed to run it on any file. I tried the Command Palette as mentioned in the docs, but it doesn't seem to appear as an option if I type fix. Any suggestions? Should I be able to execute it via Keyboard shortcut or Context menu? Thanks ;)

kristianmandrup commented 9 years ago

Also tried running it as a gulp task:

/*jslint node: true */
'use strict';

var gulp = require('gulp');
var fixmyjs = require('gulp-fixmyjs');

gulp.task('fixjs', function(){
  gulp.src('./apps/_global/data/**/*.js')
    .pipe(fixmyjs({
        // JSHint settings here
    }))
    .pipe(gulp.dest('./apps/_global/data'));
});

Any ideas?

events.js:141
      throw er; // Unhandled 'error' event
      ^
Error: Error when running fixmyjs:
TypeError: Cannot read property 'type' of null
sindresorhus commented 9 years ago

Works fine for me with latest Atom. It's excuted through the Command Palette as outlined in the docs.

Not the right place to ask about the gulp task.

samuelt1 commented 7 years ago

I could not get it to work either. I tried using the command palette as outlined

sindresorhus commented 6 years ago

Closing as this plugin is now deprecated.