eslint-config-textkernel
v1.0.12
Published
ESLint shareable config for Textkernel style guide
Downloads
6
Maintainers
Readme
eslint-config-textkernel
ESLint shareable config for Textkernel style guide
eslint-config-textkernel is a shareable configuration package for eslint built on top of eslint-airbnb-config and modified to meet Textkernel's own standards.
Installation
- Install all peer dependencies
npx install-peerdeps --dev eslint-config-textkernel
- Install eslint-config-textkernel as a development dependency of your project:
npm install eslint-config-textkernel --save-dev
Available ESLint configs
eslint-config-textkernel
The default export contains common rules that are not specific to any framework or environment.
// eslintrc.js
module.exports = {
extends: [eslint-config-textkernel'],
};
eslint-config-textkernel/react
Extends eslint-config-textkernel
adding specific rules to React.
// eslintrc.js
module.exports = {
extends: ['eslint-config-textkernel/react'],
};
VSCode integration
We recommend turning on VSCode settings to automatically run eslint --fix
on save.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
}
This will automatically format your code once you save. You don't need VSCode prettier extension enabled or running on save as eslint will automatically run prettier
for you.