4.0.2 • Published 3 years ago
@showbie/eslint-config v4.0.2
showbie-eslint-config
ESLint configuration for Showbie projects.
Usage
Install the conventions by running:
# Ember projects
yarn add -D eslint prettier @showbie/eslint-config eslint-plugin-{ember,hbs}
# React projects
npm i -D eslint prettier @showbie/eslint-config @typescript-eslint/{eslint-plugin,parser} eslint-plugin-{react,react-hooks}
Then add the extends to your .eslintrc.js
:
{
// Ember projects
extends: ['@showbie', '@showbie/eslint-config/ember'],
// React projects
extends: ['@showbie', '@showbie/eslint-config/react'],
rules: { /* … */ }
}
If Ember or React conventions aren’t required, don’t install the
plugins and don’t include the extra extends
item.
You’ll probably want to ensure you have a couple of Prettier’s options set as well.
"prettier": {
"singleQuote": true
}