@vladyslav-n/qwertyuiop
v0.0.12
Published
Eslint configs for TS/JS React/Node projects.
Downloads
8
Maintainers
Readme
eslint-config
This package includes 4 Eslint configs:
- Raw Typescript
- Raw Javascript
- Typescript React
- Typescript Node.js
Example using Eslint flat config eslint.config.mjs
:
// @ts-check
import reactConfig from "@fxc/eslint-configs/configs/react-ts.config.js";
import tseslint from "typescript-eslint";
export default tseslint.config({
languageOptions: {
parserOptions: {
projectService: { allowDefaultProject: ["*.js", "*.mjs"] },
},
},
extends: [...reactConfig],
rules: {
// Most of the projects would need this for easier transition:
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
},
});