eslint-config-lexmarkweb

0.1.6 • Public • Published

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.

  1. Install nodejs brew install node
  2. Install eslint npm install -g eslint eslint-config-lexmarkweb
  3. Create a file in your home directory ~/.eslintrc that contains extends: lexmarkweb

Integration

AFTER following the Getting Started instructions above, here is how you use ESLint.

  • Command line

    1. From commandline type eslint file.js
    2. To fix issues automatically you can type eslint --fix file.js. The file.js will be modified directly.
  • Atom

    1. From Atom | Preferences... | Packages search for linter-eslint
    2. Install the package
    3. Package Settings
    • Set Global Node Installation Path to /usr/local
    • Set Use global ESLint installation
    1. When you open a Javascript file errors will be highlighted.
  • IntelliJ

    1. From IntelliJ Idea | Preferences | Plugins click Browse repositories... and search for ESLint.
    2. Restart IntelliJ
    3. 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
    1. When you open a Javascript file errors will be highlighted.
  • SublimeText

    1. Choose Tools | Install Package Control... if you have not done that already.
    2. From Tools | Command Pallette type install and select Package control: Install Package
    3. Type SublimeLinter and install the SublimeLinter package.
    4. From Tools | Command Pallette type install and select Package control: Install Package
    5. Type contrib-eslint and install the submlimelinter-contrinb-eslint package.
    6. When you open a Javascript file errors will be highlighted.
  • VisualStudio Code

    1. Ctrl-Shift-X and find and install the ESLint plugin by Dirk Baeumer.
    2. When you open a Javascript file errors will be highlighted.
  • VIM. If you use VIM you don't need step by step instructions. 😉

See the ESLint site for other integrations

Package Sidebar

Install

npm i eslint-config-lexmarkweb

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

17.7 kB

Total Files

5

Last publish

Collaborators

  • haroldputman