Code Monkey home page Code Monkey logo

brackets-eslint's Introduction

brackets-eslint

I'm nice extension, really easy to live with, I don't eat too much time, and I desperatly need a new master (maintainer) please adopt me ๐Ÿ•

Adds ESLint support to Brackets.

Installation

See Brackets Wiki tutorial

How to configure

Use standard .eslintrc, this extension also support .eslintignore files.

How to use custom rules

Move them to .eslintrules folder in your project root.

Custom parsers and plugins

If you have a local installation of eslint in your node_modules brackets-eslint will use this version with all custom parsers and plugins installed locally.

Credits

This extension is largely inspired by Martin Zagora one, thanks for his hard work.

brackets-eslint's People

Contributors

fdecampredon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brackets-eslint's Issues

Doesn't support ES6 generators?

Hi,
I'm totally new to web, Js, ES6, etc...I'm trying to code some app using Koa which heavily uses ES6 generators. Code example:

app.use(function *() {  
// bla bla bla
});

ESLint report this error: Unexpected token * app.use(function *() {

After updating to ESLint v2.8.0, ESLint crashes

This extension has been working great, but my project just updated to ESLint 2.8.0, and extension now crashes with this error in lint panel:

ESLint terminated with error: at Error: /Users/redmunds/dev/git.corp/sparkler-shell/js/.eslintrc: Configuration for rule "keyword-spacing" is invalid: Severity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed "error"). at validateRuleOptions (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/config/config-validator.js:102:15) at /Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/config/config-validator.js:148:13 at Array.forEach (native) at Object.validate (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/config/config-validator.js:147:35) at Object.load (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/config/config-file.js:390:19) at loadConfig (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/config.js:74:33) at getLocalConfig (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/config.js:177:23) at Config.getConfig (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/config.js:272:22) at processText (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/cli-engine.js:203:27) at CLIEngine.executeOnText (/Users/redmunds/Library/Application Support/Brackets/extensions/user/fdecampredon.brackets-eslint/node_modules/eslint/lib/cli-engine.js:686:26)

Related line in .eslintrc file of my project is:

    "keyword-spacing": ["error", {"before": true, "after": true, "overrides": {}}],

support for listen jsx files

Excellent project.
could you add support to jsx files to listen them.
meanwhile I'm renaming the file from jsx to js for check the warning of eslint

cannot handle ArrowFunctionExpression

hey there,

when i add the rule

        "require-jsdoc": [1, {
            "require": {
                "FunctionDeclaration": true,
                "MethodDefinition": true,
                "ClassDeclaration": true,
                "ArrowFunctionExpression": false
            }
        }]

to my eslintrc it says data["1"].require.ArrowFunctionExpression" has additional properties

maybe you can update the eslint version to a more recent one ?

Best,
Michael

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.