0.2.1 • Published 5 years ago

eslint-plugin-eda v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

eslint-plugin-eda

Linting configuration for Enspiral Dev Academy (EDA) challenges and projects

Installation

You'll first need to install ESLint and babel-eslint:

$ npm i -D eslint babel-eslint

Next, install eslint-plugin-eda and dependencies:

$ npm i -D eslint-plugin-eda

Usage

Add eda to the plugins section of your .eslintrc configuration file (you can omit the eslint-plugin- prefix) and then configure it under the extends section. This is what your .eslintrc.json should look like after adding parser and settings sections:

{
  "parser": "babel-eslint",
  "parserOptions": {
    "sourceType": "module",
    "ecmaFeatures": {"jsx": true}
  },
  "settings": {
    "react": {"version": "detect"},
    "import/resolver": {"node": {"extensions": [".js",".jsx"]}}
  },
  "plugins": ["eda"],
  "extends": {"eda/recommended"}
}