Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

apexskier/nova-eslint

Repository files navigation

⚠️ Archived: Although it was fun to build my nova extensions, I haven't ended up using Nova regularly and can't devote the time to maintenance. Feel free to reach out if you want to fork and start maintaining an alternative.

ESLint Extension for Nova

Provides integration with ESLint to lint your code.

Features

  • Inline ESLint issue reporting
  • "Fix All Issues" command
  • "Apply a Suggestion" command (more information)
  • Quick suggestion to ignore an issue
  • Auto-fix on save preference
  • Custom ESLint install locations
  • Custom ESLint config file location
  • Supports multiple file formats

Setup

To use this, follow the Getting Started with ESLint instructions. You'll need to have ESLint installed locally in your project (it should be installed in ${workspaceRoot}/node_modules/eslint). If you rely on a global or custom ESLint installation you can configure it by setting the "Path to ESLint executable" preference in Nova. This is accessible globally at Extensions > Extension Library… > ESLint > Preferences, and per-workspace at Project > Project Settings… > ESLint.

To verify you've set up correctly, run $(npm bin)/eslint ./path/to/file.js on a file and make sure the output is correct (no output if you don't expect issues, expected issues if you do).

Screenshots

Inline errors

Sidebar errors

Suggestions

Fork

NOTE: This is a fork of an earlier version of this plugin. See jsmecham/nova-eslint#6 for more context on why I forked.

UPDATE: Since forking, this extension has overtaken the original in total installs. Because forked repositories have some management limitations and the code has evolved so much, I've unforked on GitHub. The original fork is present at https://github.com/apexskier/nova-eslint-forked.