5.0.0 • Published 4 months ago

eslint-config-bitauth v5.0.0

Weekly downloads
12
License
MIT
Repository
-
Last release
4 months ago

eslint-config-bitauth

A very strict eslint configuration, including rules which require:

  • a functional programming style
  • properly-used eslint comments
  • sorted and properly ordered imports
  • properly formatted TSDoc comments
  • strictly formatted code (prettier-compliant)
  • nearly all eslint and @typescript-eslint rules

Install

First, configure your project for typescript-eslint. Then install eslint-config-bitauth and the required plugins.

npm install --dev eslint @typescript-eslint/parser eslint-config-bitauth eslint-plugin-functional eslint-plugin-eslint-comments eslint-plugin-import eslint-plugin-tsdoc eslint-plugin-prettier

Then add bitauth to the extends array in your ESLint configuration.

Example .eslintrc:

{
  "root": true,
  "parser": "@typescript-eslint/parser",
  "parserOptions": { "project": "./tsconfig.json" },
  "env": { "es6": true },
  "ignorePatterns": ["node_modules", "build", "coverage"],
  "extends": ["bitauth"],
  "globals": { "BigInt": true, "WebAssembly": true },
  "rules": {
    // rule overrides:
    "example-rule": "off"
  }
}
5.0.0

4 months ago

4.0.1

11 months ago

4.0.0

12 months ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago