eslint-config-lexmarkweb
v0.1.6
Published
ESLint configuration for Lexmark Web Team
Downloads
18
Maintainers
Readme
eslint-config-lexmarkweb
ESLint config for Lexmark web team
Introduction
ESLint provides static code analysis for Javascript. It looks through your code and makes sure it conforms to standards. The rules here are the standards for the Lexmark Global Web Team.
Getting Started
We assume Mac users have homebrew installed already. Windows and Linux users follow a similar process.
- Install nodejs
brew install node
- Install eslint
npm install -g eslint eslint-config-lexmarkweb
- Create a file in your home directory
~/.eslintrc
that containsextends: lexmarkweb
Integration
AFTER following the Getting Started instructions above, here is how you use ESLint.
Command line
- From commandline type
eslint file.js
- To fix issues automatically you can type
eslint --fix file.js
. Thefile.js
will be modified directly.
- From commandline type
- From
Atom | Preferences... | Packages
search forlinter-eslint
- Install the package
- Package Settings
- Set
Global Node Installation Path
to/usr/local
- Set
Use global ESLint installation
- When you open a Javascript file errors will be highlighted.
- From
- From
IntelliJ Idea | Preferences | Plugins
clickBrowse repositories...
and search for ESLint. - Restart IntelliJ
- From
IntelliJ Idea | Preferences | Other Settings | ESLint
- Check enable
- Set
Node interpretter
to/usr/local/bin/node
- Set
Path to eslint bin
to/usr/local/bin/eslint
- Select
Let eslint search for .eslint up the folder tree
- When you open a Javascript file errors will be highlighted.
- From
- Choose
Tools | Install Package Control...
if you have not done that already. - From
Tools | Command Pallette
type install and selectPackage control: Install Package
- Type
SublimeLinter
and install the SublimeLinter package. - From
Tools | Command Pallette
type install and selectPackage control: Install Package
- Type
contrib-eslint
and install thesubmlimelinter-contrinb-eslint
package. - When you open a Javascript file errors will be highlighted.
- Choose
- Ctrl-Shift-X and find and install the ESLint plugin by Dirk Baeumer.
- When you open a Javascript file errors will be highlighted.
VIM. If you use VIM you don't need step by step instructions. :wink:
See the ESLint site for other integrations