Wondering what’s next for npm?Check out our public roadmap! »

    eslint-config-bitauth

    2.1.0 • Public • Published

    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
    

    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"
      }
    }

    Install

    npm i eslint-config-bitauth

    DownloadsWeekly Downloads

    11

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    6.64 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar