@code-style/eslint-config
v2.0.0-32
Published
My base ESLint config
Downloads
743
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
tsc
errors 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 i
Add the following overrides to your
package.json
"overrides": { "minimatch": "^9", "@types/glob": "^8" }
Update your lock file
$ npm i
Remove the overrides we added earlier
Update your lock file again
$ npm i
Observe that
node_modules/@types/glob
andnode_modules/minimatch
have been removed from your package lock.
Typescript type hack
- Add an empty
types
array to yourtsconfig
- Add an empty