GithubHelp home page GithubHelp logo

kookob / eslint-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from idok/eslint-plugin

0.0 2.0 0.0 303 KB

ESLint plugin for intellij

Home Page: http://plugins.jetbrains.com/plugin/7494

License: MIT License

Java 98.92% JavaScript 0.99% HTML 0.08%

eslint-plugin's Introduction

ESLint Plugin

ESLint is The pluggable linting utility for JavaScript. see more here.
ESLint plugin for WebStorm, PHPStorm and other Idea family IDE with Javascript plugin, provides integration with ESLint and shows errors and warnings inside the editor.

  • Support displaying eslint warnings as intellij inspections
  • Quick fixes for several rules
  • Support for custom eslint rules

Bundled plugin

As of Intellij 14, a plugin based on this one was bundled into the IDE release by Jetbrains. What's the diffrence? This plugin supports Intellij 13 and other versions, --fix option, quick fixes and other minor differences. Please make sure you are referring to this one before opening an issue.

Getting started

Prerequisites

  • NodeJS
  • IntelliJ 13.1.4 / Webstorm 8.0.4, or above.

Install eslint npm package eslint npm:

$ cd <project path>
$ npm install eslint

Or, install eslint globally:

$ npm install -g eslint

Settings

To get started, you need to set the ESLint plugin settings:

  • Go to preferences, ESLint plugin page and check the Enable plugin.
  • Set the path to the nodejs interpreter bin file.
  • Select whether to let eslint search for .eslintrc file
  • Set the path to the eslint bin file. should point to <project path>node_modules/eslint/bin/eslint.js if you installed locally or /usr/local/bin/eslint if you installed globally.
    • For Windows: install eslint globally and point to the eslint cmd file like, e.g. C:\Users\<username>\AppData\Roaming\npm\eslint.cmd
  • Set the .eslintrc file, or eslint will use the default settings.
  • You can also set a path to a custom rules directory.
  • By default, eslint plugin annotate the editor with warning or error based on the eslint configuration, you can check the 'Treat all eslint issues as warnings' checkbox to display all issues from eslint as warnings.

Configuration:
ESLint config

Inspection:
ESLint inline

Analyze Code:
ESLint inline

A Note to contributors

ESLint plugin uses the code from here as a module, to run the project you need to clone that project as well.

eslint-plugin's People

Contributors

jonclayton avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.