eslint-config-wonka
v1.1.1
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.
🤔 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.
