@kodansha/eslint-config

0.1.6 • Public • Published

@kodansha/eslint-config

A set of KODANSHA ESLint configuration for TypeScript projects.

It is recommended to use this along with @kodansha/prettier-config.

Installation

npm install -D typescript eslint @kodansha/eslint-config

or

yarn add -D typescript eslint @kodansha/eslint-config

Usage

Defaults

To use the defaults preset, put .eslintrc.js in your project's root directory:

module.exports = {
  extends: ["@kodansha"],
  root: true,
};

Next.js

To use the preset for Next.js, put .eslintrc.js in your project's root directory:

module.exports = {
  extends: ["@kodansha/eslint-config/presets/next"],
  root: true,
};

React.js

To use the preset for React.js, put .eslintrc.js in your project's root directory:

module.exports = {
  extends: ["@kodansha/eslint-config/presets/react"],
  root: true,
};

Node.js

To use the preset for Node.js, put .eslintrc.js in your project's root directory:

module.exports = {
  extends: ["@kodansha/eslint-config/presets/node"],
  root: true,
};

Nest.js

To use the preset for Nest.js, put .eslintrc.js in your project's root directory:

module.exports = {
  extends: ["@kodansha/eslint-config/presets/nest"],
  root: true,
};

Readme

Keywords

Package Sidebar

Install

npm i @kodansha/eslint-config

Weekly Downloads

23

Version

0.1.6

License

MIT

Unpacked Size

5.77 kB

Total Files

14

Last publish

Collaborators

  • 5t111111
  • y-nagao