eslint-config-intech
v2.0.8
Published
ESLint and Prettier Config for Intech Ventures
Downloads
6
Maintainers
Readme
Intech Ventures ESLint Config
This repository defines the ESLint and Prettier rules at Intech Ventures.
Adding to a new project
- To use this in a new project simply install everything you need using the following command (works with yarn):
npx install-peerdeps --dev eslint-config-intech- Add the following ESLint configuration to the project's package.json.
.eslintrcand.prettierrcfiles can be safely removed from the project.
"eslintConfig": {
"extends": [
"eslint-config-intech"
]
}Usage with VSCode
- Install the VSCode ESLint plugin
- Since Prettier is automatically ran through ESLint, it does not have to be enabled in VSCode settings. Match your settings.json with this
{
"editor.formatOnSave": true,
// Do not automatically format JavaScript or JavaScript react, as this will be done by ESLint
"[javascript]": { "editor.formatOnSave": false },
"[javascriptreact]": { "editor.formatOnSave": false },
"[typescript]": { "editor.formatOnSave": false },
"[typescriptreact]": { "editor.formatOnSave": false },
// Run ESLint on Save
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"prettier.disableLanguages": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}
