eslint-config-wonka
v1.3.0
Published
Eslint and Prettier config
Maintainers
Readme
👀 How to use
Install the dependency.
npm install --save-dev eslint-config-wonkaAdd it to your
eslint.config.js:import eslintConfigWonka from "eslint-config-wonka"; export default [ // If you're using js ...eslintConfigWonka.js, // Or if you're using ts. The ts config includes the js one, so you don't need to include it manually. ...eslintConfigWonka.ts, { // Your config here } ]Also, you can use the
fullconfig, which includes thejs,ts:import eslintConfigWonka from "eslint-config-wonka"; export default [ ...eslintConfigWonka.full, { // Your config here } ]
[!NOTE]
Some rules enabled by default requirestrict: trueto be set in yourtsconfig.json.
You should also install the Prettier extension if you want to see errors.
To automatically format changes on save, you need to use the following settings in your usersettings.json:
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}🤔 What it does
- Lints JavaScript using
eslint:recommendedand Prettier. - Additionally, lints TypeScript using
@typescript-eslint/recommendedand@typescript-eslint/recommended-requiring-type-checking. - Uses the following plugins:
import: helps validate proper imports.simple-import-sort: sorts imports.unused-imports: finds and removes unused ES6 module imports.
- Uses rules inside the configs folder.
