@arbetsmyra/eslint-config

Arbetsmyra's ESLint config

Usage no npm install needed!

<script type="module">
  import arbetsmyraEslintConfig from 'https://cdn.skypack.dev/@arbetsmyra/eslint-config';
</script>

README

eslint-config

Arbetsmyra's ESLint config

latest git version latest npm version license

Installation

Requirements

  • node >= v10
  • npm >= v5
npm install --save-dev eslint @arbetsmyra/eslint-config

Usage

Once the @arbetsmyra/eslint-config package is installed, you can use it by specifying the @arbetsmyra/eslint-config config for the extends property in the ESLint configuration.

{
  'extends': ['@arbetsmyra/eslint-config']
}

By default all rules will be used.

To only use "autofixable" rules you can extend the @arbetsmyra/eslint-config/config/autofixable config.

{
  'extends': ['@arbetsmyra/eslint-config/config/autofixable']
}

To only use "other" rules you can extend the @arbetsmyra/eslint-config/config/other config.

{
  'extends': ['@arbetsmyra/eslint-config/config/other']
}

Using the @arbetsmyra/eslint-config config with other shareable configs.

{
  'extends': [
    // other shareable configs
    '@arbetsmyra/eslint-config'
  ]
}

Contributing

If you want to contribute and make our project better, your help is very welcome.

Our contribution guide is right now a bit empty but will be improved in the future. If you have any requests or suggestions please create an issue with the necessary information and we will get back to you.

License

MIT © Arbetsmyra