@neolution-ch/eslint-config-neolution

1.3.0 • Public • Published

eslint-config-neolution

This package provides Neolution's .eslintrc as an extensible shared config.

Installation

# inside your project's working tree
yarn add -D @neolution-ch/eslint-config-neolution

Usage

Edit the .eslintrc.js of your project:

module.exports = {
  ...
  extends: ["@neolution-ch/eslint-config-neolution"],
  ...
}

React

For React project you might need to adjust the "@typescript-eslint/naming-convention" rule to allow PascalCase for component names.

module.exports = {
  ...
  rules: {
    "@typescript-eslint/naming-convention": ["error", {
      selector: "default",
      format: ["camelCase", "PascalCase"],
      leadingUnderscore: "allow",
    },
    {
      selector: ["typeLike", "accessor", "enumMember"],
      format: ["PascalCase"],
    }],
  }
  ...
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @neolution-ch/eslint-config-neolution

Weekly Downloads

34

Version

1.3.0

License

MIT

Unpacked Size

27.4 kB

Total Files

21

Last publish

Collaborators

  • drebrez
  • neotrow