Github
Github Actions
NPM
These are settings for ESLint working as shareable config.
This setup lints your JavaScript code based on practices. It supports React projects with typescript and uses plugins like:
Check the index.js file to see what is included. Feel free to override the rules that make sense for you.
In your project folder, run:
npm i -D @szum-tech/eslint-config-szum-tech
# or yarn install --dev @szum-tech/eslint-config-szum-tech
npx install-peerdeps --dev @szum-tech/eslint-config-szum-tech
Once the @szum-tech/eslint-config-szum-tech
package is installed, you can use it by specifying
@szum-tech/eslint-config-szum-tech
in
the extends
section of your ESLint configuration.
Use one of following way:
extends:
- "@szum-tech/eslint-config-szum-tech"
{
"eslintConfig": {
"extends": [
"@szum-tech/eslint-config-szum-tech"
]
}
}
{
"scripts": {
"lint": "eslint {**/*,*}.{js,ts,jsx,tsx}",
"lint:fix": "eslint --fix {**/*,*}.{js,ts,jsx,tsx}"
}
}
MIT © Szum-Tech