Quadre extension which provides file linting with ESLint.
Uses CLIEngine from https://www.npmjs.com/package/eslint which should provide same results as linting in the command line (respecting all .eslintrc files)
Includes support for custom parsers and plugins.
Use standard .eslintrc
file like this one
Move them to .eslintrules
folder in your project root like you can see in this repo.
Extension uses eslint plugins installed in the current project. If you're missing a plugin, then in your project directory do:
npm install eslint-plugin-react
To disable the both warning and error icons in the gutter you can configure the brackets.json
as followed:
{
"quadre-eslint.gutterMarks": false
}
or only disable warnings icons:
{
"quadre-eslint.gutterMarks": { "error": true, "warning" : false }
}
To force the extension to use its own version of ESLint:
{
"quadre-eslint.useEmbeddedESLint": true
}
clone:
https://github.com/quadre-code/quadre-eslint
cd quadre-eslint
get latest version from origin (discarding local changes):
git fetch origin
git reset --hard origin/master
git status (should say 'nothing to commit, working tree clean')
make sure the extension is built locally:
npm install
raise the version & publish:
npm version [major | minor | patch]
git push
git push --tags
npm publish