0.0.12 • Published 8 months ago

@vladyslav-n/qwertyuiop v0.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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",
  },
});