2.1.0 • Published 2 years ago

@biased-ts/eslint-config v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

INTRODUCTION

eslint-config-biased-ts is a couple of heavily biased Eslint configuration files, made to both enforce my biased styling, and to help bootstrap my other projects.

INSTALLATION

  • Install both ESLint and eslint-config-biased-ts using your local package manager. EX: npm i eslint @biased-ts/eslint-config

  • From there, create or modify your .eslintrc. (or whatever naming convention you use) to either extend ProperDoc or ProperTS

  • From there, you are done! If it does not work, restart your Eslint and or Typescript server.

EXAMPLES

Recommended:

{
    "root": true,
    "extends": [ "@biased-eslint/eslint-config/ProperTSDoc", "@biased-eslint/eslint-config/ProperTS" ],
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "ignorePatterns": ["**/dist/*"]
}

Typescript:

{
    "root": true,
    "extends": [ "@biased-eslint/eslint-config/ProperTS" ],
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "ignorePatterns": ["**/dist/*"]
}

JSDoc:

{
    "root": true,
    "extends": [ "@biased-eslint/eslint-config/JSDoc" ],
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "ignorePatterns": ["**/dist/*"]
}

TSDoc:

{
    "root": true,
    "extends": [ "@biased-eslint/eslint-config/TSDoc" ],
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "ignorePatterns": ["**/dist/*"]
}