@notastudio/eslint-config

Not a Studio's ESLint shared config.

Usage no npm install needed!

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

README

eslint-config

Not a Studio's ESLint shared config.

Usage

Install the package by running:

yarn add -D eslint @notastudio/eslint-config

Then add the extends to your .eslintrc:

{
  "extends": ["@notastudio"],
  "rules": {
    // your overrides
  }
}

Finally, for Prettier's rules to work with your editor / git hook add at prettier.config.js:

module.exports = require('@notastudio/eslint-config/.prettierrc')

Other configs

This config exposes a few other configs that you can use standalone or in combination with the base config:

{
  "extends": ["@notastudio", "@notastudio/eslint-config/<config-name>"]
}
  • react: React JS library (eslint-plugin-react)
  • jest: jest testing framework (eslint-plugin-jest)
  • flow: flow static type checker for JavaScript (eslint-plugin-flowtype)

License

MIT