@builderhub/eslint-config

0.0.9 • Public • Published

@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"],
  },
};

Package Sidebar

Install

npm i @builderhub/eslint-config

Weekly Downloads

95

Version

0.0.9

License

MIT

Unpacked Size

5.34 kB

Total Files

4

Last publish

Collaborators

  • ushiii111798
  • dlruawo07
  • eunchurn
  • builderhub-admin