@cis-1962/eslint-config

1.0.9 • Public • Published

CIS-1962 ESLint config

Usage

For a plain Node.js project, use the following .eslintrc.js:

/** @type {import('eslint').Linter.Config} */
module.exports = {
  root: true,
  extends: ['@cis-1962/eslint-config/node'],
};

For a TypeScript project:

/** @type {import('eslint').Linter.Config} */
module.exports = {
  root: true,
  extends: ['@cis-1962/eslint-config/typescript'],
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: true,
  },
};

For a React (with TypeScript) project:

/** @type {import('eslint').Linter.Config} */
module.exports = {
  root: true,
  extends: ['@cis-1962/eslint-config/react'],
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: true,
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @cis-1962/eslint-config

Weekly Downloads

11

Version

1.0.9

License

ISC

Unpacked Size

5.21 kB

Total Files

7

Last publish

Collaborators

  • printer83mph