@anvilabs/eslint-config-react
Anvilabs' ESLint config for our React/React Native apps.
Usage
This config relies dangerously on npm@3/yarn flatter tree for its dependencies (because of eslint/issues/3458), so installation may be as simple as:
$ yarn add eslint prettier @anvilabs/eslint-config @anvilabs/eslint-config-react --dev
# or
$ npm install eslint prettier @anvilabs/eslint-config @anvilabs/eslint-config-react --save-dev
Then add the extends to your .eslintrc.js
:
module.exports = {
extends: ['@anvilabs/eslint-config', '@anvilabs/eslint-config-react' /* or '@anvilabs/eslint-config-react/native' */],
rules: {
// your overrides
},
};
Additional configs include:
-
'@anvilabs/eslint-config-typescript/babel-react-require'
for the import plugin to work with babel-plugin-module-resolver
License
MIT License © Anvilabs LLC