0.0.7 • Published 2 years ago

@henningkerstan/eslint-config v0.0.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

eslint-config

My personal configuration for ESLint.

Rules

This configuration uses the rulesets

  • eslint:recommended
  • plugin:@typescript-eslint/recommended
  • plugin:@typescript-eslint/recommended-requiring-type-checking
  • plugin:prettier/recommended

and extends them as explained below.

Naming Convention

  • The default is to use camelCase and leading or trailing underscores are forbidden.
  • Types and enum members must be in PascalCase.
  • Private member variables may use a leading underscore.

Other

  • Prettier formatting errors will be marked as errors
  • Blocks are required to be in curly braces

Install and use

  1. Install this package using npm
npm i --save-dev @henningkerstan/eslint-config
  1. Add a file .eslintrc.js with the following content
module.exports = {
  extends: ['@henningkerstan/eslint-config'],
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ['./tsconfig.json'],
  },
}

For more information or a custom configuration, have a look at https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/docs/getting-started/linting/TYPED_LINTING.md

License

Copyright 2021 Henning Kerstan

SPDX-License-Identifier: Apache-2.0

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago