1.0.0 • Published 8 months ago

@vladyslav-n/eslint-configs v1.0.0

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

8 months ago

0.0.12

9 months ago

0.0.10

10 months ago

0.0.11

9 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago