@builderhub/eslint-config
v0.0.9
Published
Builderhub Platform Dev team ESLint configuration
Downloads
321
Readme
@builderhub/eslint-config
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"],
},
};