@code-style/eslint-config
v2.0.0-35
Published
My base ESLint config
Readme
@code-style/eslint-config
A set of ESLint rules customized for code corectness.
The easiest way to get started with this project is to use our setup script.
You're probably looking to use this with one of our other configs:
@code-style/node@code-style/cli@code-style/typescript@code-style/jest@code-style/browser@code-style/react
However, if you're trying to build a new config for a new environment (maybe some new frontend framework or something), you'll want to use this config as a layer in your project.
TODO(1): Evaluate the following plugins:
- [ ] https://github.com/Rel1cx/eslint-react
TODO(0): Fix intermittent
tscerrors related to invalid types from@types/glob/minimatch.Some temporary workarounds to this issue follow:
npm trickery
Regenerate your package lock
$ rm -rf package-lock.json node_modules; npm iAdd the following overrides to your
package.json"overrides": { "minimatch": "^9", "@types/glob": "^8" }Update your lock file
$ npm iRemove the overrides we added earlier
Update your lock file again
$ npm iObserve that
node_modules/@types/globandnode_modules/minimatchhave been removed from your package lock.
Typescript type hack
- Add an empty
typesarray to yourtsconfig
- Add an empty
