5.0.0 • Published 1 year ago
@thermarthae/eslint-config v5.0.0
@thermarthae/eslint-config
Just a personalized Airbnb Eslint config.
✨ Setup
1) Install
This step assumes that you have already installed Eslint and Typescript.
yarn add -D @thermarthae/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooksIf you don't need React support:
yarn add -D @thermarthae/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import2) Configure ESLint
Add "extends": "@thermarthae/eslint-config" to your ESLint config file.
An example .eslintrc.js:
module.exports = {
// If you don't need React support:
// extends: ['@thermarthae/eslint-config/base'],
extends: ['@thermarthae/eslint-config'],
};Note: If your tsconfig.json is not in the same directory as package.json, you will have to set the path yourself:
module.exports = {
extends: ['@thermarthae/eslint-config'],
+ parserOptions: {
+ project: './foo/bar/tsconfig.json',
+ },
};📝 License
Copyright © 2020 thermarthae.
This project is MIT licensed.