@microexcel-csd/lint-rules

2.0.0 • Public • Published

Lint Rules

Description

This package contains a standard set of ESLint rules to be used across Microexcel CSD projects. This is to ensure each project has the same set of rules to keep projects consistent.

Installation

From the root folder of your project, install the package with the following command:

npm i @microexcel-csd/lint-rules --save-dev

Usage

Once the package is installed, add the desired rulesets to the "extends" section of the eslintrc.json in the root of your project:

{
    "root": true,
    "ignorePatterns": [
        "projects/**/*"
    ],
    "overrides": [
        {
            "files": [
                "*.ts"
            ],
            "parserOptions": {
                "project": [
                    "tsconfig.json"
                ],
                "createDefaultProgram": true
            },
            "extends": [
                "@microexcel-csd/lint-rules/angular"
            ],
            ...
        }
        ...
    ]
}

Afterwards, you will be able to run ng lint to use the newly-imported lint rules.

NOTE: Keeping this package up to date is highly recommended. Be sure that the version number in your package.json contains a ^ before the version number to update to the newest minor version when using npm update.

Example:

"devDependencies": {
    ...
    "@microexcel-csd/lint-rules": "^2.0.0",
    ...
}

Package Sidebar

Install

npm i @microexcel-csd/lint-rules

Weekly Downloads

2

Version

2.0.0

License

ISC

Unpacked Size

3.37 kB

Total Files

5

Last publish

Collaborators

  • sheeput
  • abenabides
  • hendricksontyler
  • belugasanity
  • knowlysis