0.0.9 • Published 6 months ago

@builderhub/eslint-config v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@builderhub/eslint-config

Publish Package to npmjs npm npm License: MIT

Standard ESLint configuration for Builderhub Platform Dev team projects.

Code lint with TypeScript and Prettier

Installation

npm install -D @builderhub/eslint-config

Usage

add .eslintrc and add more your rules in rules field.

{
  "extends": ["@builderhub/eslint-config"],
  "rules": {}
}

Configuration

module.exports = {
  parser: "@typescript-eslint/parser",
  plugins: ["@typescript-eslint"],
  extends: [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "plugin:prettier/recommended",
  ],
  parserOptions: {
    ecmaVersion: 2018,
    createDefaultProgram: true,
  },
  rules: {
    "prettier/prettier": ["error"],
    "no-console": ["off"],
    "import/no-extraneous-dependencies": ["off"],
    "no-return-await": ["off"],
    "import/extensions": ["off"],
    "import/no-unresolved": ["off"],
    "class-methods-use-this": ["off"],
    "no-unused-vars": ["off"],
    "no-useless-escape": ["off"],
    "import/prefer-default-export": ["off"],
    "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
    "@typescript-eslint/explicit-function-return-type": "off",
    "@typescript-eslint/no-explicit-any": ["warn"],
  },
};