eslint-config-supermind

0.48.0 • Public • Published

Supermind ESLint Config

Install yarn globally:

npm install yarn --global

Add eslint and eslint-config-supermind as a devDependency to your project:

yarn add eslint eslint-config-supermind --dev

Create an .eslintrc.js file at the root of your project and add the following configuration:

module.exports = {
  root: true, // Prevent ESLint from inheriting configuration above this file
  extends: [
    'supermind',          // Extend base config
    'supermind/react',    // Extend react config (optional)
    'supermind/inferno',  // Extend inferno config (optional)
    'supermind/jsx-a11y', // Extend jsx-a11y config (optional)
    'supermind/flowtype'  // Extend flowtype config (optional)
  ]
}

Add a lint script in your project package.json file:

{
  "name": "kitten-socks",
  "scripts": {
    "lint": "eslint source"
  }
}

To lint the source directory of your project run:

yarn run lint

Development

To ensure that all available rules are specified throughout the config files run:

yarn run list-omitted-rules

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.48.0
    4
    • latest

Version History

Package Sidebar

Install

npm i eslint-config-supermind

Weekly Downloads

58

Version

0.48.0

License

MIT

Last publish

Collaborators

  • wagerfield