1.0.1 • Published 5 months ago

@pixiv/eslint-config v1.0.1

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

@pixiv/eslint-config

!WARNING This package does not follow semver before 1.0

pnpm add eslint @pixiv/eslint-config

eslint.config.mjs

import pixiv from "@pixiv/eslint-config";

export default pixiv.configs.recommended;

また

import pixiv from "@pixiv/eslint-config";

export default [
  {
    ignores: ["tmp", "vendor", "public/packs"],
  },
  ...pixiv.configs.recommended,
  {
    rules: {
      "react/self-closing-comp": "warn",
      "import/first": "warn",
      "object-shorthand": "warn",
      curly: "off",
    },
  },
];

Goals and non-goals

Goals

  • Reduce the cost for managing eslint related dependencies

Non-goals

  • Managing extremely opinionated lint rules

Known issues

  • This package contains many deps that might not be used
  • In some condition it's required to set public-hoist-pattern[]=eslint-* in .npmrc