eslint-config-twg
v1.1.0
Published
twgdev eslint config
Downloads
21
Maintainers
Readme
ESLint (and Prettier) config
These are settings for ESLint.
What it does
This setup lints your TypeScript code based on practices. Feel free to override the rules that make sense for you.
Installing
- In your project folder, run:
npx install-peerdeps --dev eslint-config-twg
- You will see several dependencies were installed. Now, create (or update) a
.eslintrc
file with the following content:
{
"extends": "eslint-config-twg/typescript.js",
"parserOptions": {
"project": "./tsconfig.json"
}
}
- Then make or update a
tsconfig.json
file:
{
"extends": "eslint-config-twg/tsconfig.json",
"include": [
"**/*"
]
}
- Add prettier config @twgdev/prettier-config