@yieldstudio/eslint-config
v2.0.0-pre.1
Published
Yield Studio Javascript shared configs
Downloads
1
Readme
@yieldstudio/eslint-config
Our base eslint and prettier configurations.
We use both to lint our code:
- eslint for code-quality.
- prettier for formatting.
Our eslint config is mainly based on Airbnb's eslint config.
Installation
yarn add --dev @yieldstudio/eslint-config eslint prettier
Extend the shared eslint config in your .eslintrc.js
:
// .eslintrc.js
module.exports = {
extends: '@yieldstudio/eslint-config',
// Your project-specific config
};
Available eslint configs:
| Config | For what ? | |----------------------------------------|----------------------| | @yieldstudio/eslint-config | Javascript project | | @yieldstudio/eslint-config/react | React project | | @yieldstudio/eslint-config/react-native | React Native project | | @yieldstudio/eslint-config/next | Next.js project |
Extend the shared prettier config in your .prettierrc.js
:
// .prettierrc.js
module.exports = require("@yieldstudio/eslint-config/prettier.config");
Credits
License
The MIT License (MIT). Please see License File for more information.