@kodkafa/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@kodkafa/eslint-config

This package includes the shareable ESLint and Prettier configuration used by KODKAFA.

First, install this package and ESLint.

pnpm add -D @kodkafa/eslint-config

Then create a file named .eslintrc.json with following contents in the root folder of your project:

{
"extends": "@kodkafa"
}

OR

{
"extends": "@kodkafa/eslint-config/react"
}

And then create a file named .prettierrc.json with following contents in the root folder of your project:

"@kodkafa/eslint-config/prettier-config"

CONFIG

ESLint Rules:

  "@typescript-eslint/no-shadow": "warn",
  indent: ["error", 2],
  "linebreak-style": ["error", "unix"],
  quotes: ["error", "single"],
  semi: ["error", "always"],
  "import/no-unresolved": 0,
  "import/extensions": 0,
  camelcase: 0,
  "no-underscore-dangle": 0,
  "no-nested-ternary": 0,
  "import/prefer-default-export": 0,
  "no-use-before-define": 0,
  "global-require": 0,
  "react/react-in-jsx-scope": 0, // in react

Prettier Config:

  arrowParens: "always",
  printWidth: 100,
  singleQuote: true,
  jsxSingleQuote: true,
  trailingComma: "all",

Package Sidebar

Install

npm i @kodkafa/eslint-config

Weekly Downloads

20

Version

1.0.4

License

ISC

Unpacked Size

7.07 kB

Total Files

18

Last publish

Collaborators

  • saegusa
  • goker