1.0.5 • Published 1 year ago

@commission-on-post/eslint-config-recommended v1.0.5

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

@commission-on-post/eslint-config-recommended

The official Commission on Peace Officer Standards and Training linting package.

Install

$ npm install @typescript-eslint/parser -D
$ npm install @commission-on-post/eslint-config-recommended -D

Recommended .eslintrc.json

{
    "root": true,
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "env": {
        "browser": true,
        "es2021": true
    },
    "extends": [
        // You do not need the other "recommended" sets they are included in the POST rules
        "@commission-on-post/eslint-config-recommended"
    ],
    "rules": {
    }
}

Peer Dependencies

PackageVersion
@typescript-eslint/eslint-plugin>=8.18.0
@typescript-eslint/parser>=8.18.0
eslint>=9.16.0
typescript>=5.7.2

Workspace Setup

Suggested VS Code Extensions

NameDescription:large_blue_circle:
ESLintIntegrates ESLint into VS Code. The extension uses the ESLint library installed in the opened workspace folder
LintLens - ESLint rules made easierAugment your ESLint rules in Visual Studio Code by Adding metadata and usage information beside each ESLint rule.

VS Code setting.json (fix on save)

  • If you have format on save in VS Code you may need to disable it, because mine started fighting.
// (file->preferences->settings [switch to json view])
"eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
  ],
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
  }
1.0.2

1 year ago

1.0.1

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.8.1

3 years ago

0.8.3

3 years ago

0.8.2

3 years ago

0.8.0

3 years ago

0.6.2

3 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago