eslint-config-adslot

ESLint configuration for Adslot


Keywords
ESLint, eslint-config-adslot, adslot, hacktoberfest
License
MIT
Install
npm install eslint-config-adslot@1.1.0

Documentation

eslint-config-adslot

npm version Build Status

ESLint configuration for Adslot

Install

npm install -D eslint-config-adslot @babel/eslint-parser eslint

eslint and @babel/eslint-parser are both required peer dependencies

Setup

Add the following to your eslint config file, ususally .eslintrc,

{
  "extends": "adslot"
}

Babel config

When not using babel.config.js in project root direct, add the following to eslintrc file.

parserOptions: {
  babelOptions: {
    configFile: 'path/to/babelrc',
  },
}

Features

This config includes

  • eslint-config-prettier
  • eslint-plugin-import
  • eslint-plugin-jsx-a11y
  • eslint-plugin-react
  • eslint-plugin-react-hooks
  • eslint-plugin-lodash
  • eslint-plugin-chai-friendly
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser