UNPKG

@michaeljaltamirano/eslint-plugin

Version:

Strongly-opinionated ESLint config

94 lines (93 loc) 3.75 kB
{ "extends": [ "eslint:recommended", "plugin:promise/recommended", "plugin:sonarjs/recommended", "plugin:jest/all", "plugin:react/all", "airbnb", "plugin:@typescript-eslint/all", "plugin:prettier/recommended" ], "rules": { "arrow-parens": "off", "no-console": ["error", { "allow": ["warn", "error"] }], "promise/no-nesting": "error", "promise/no-return-in-finally": "error", "promise/valid-params": "error", "promise/prefer-await-to-then": "error", "promise/prefer-await-to-callbacks": "error", "jest/prefer-lowercase-title": ["error", { "ignore": ["describe"] }], "jest/no-large-snapshots": "off", "jest/prefer-called-with": "off", "jest/prefer-expect-assertions": "off", "jest/valid-title": ["error", { "ignoreTypeOfDescribeName": true }], "react/jsx-filename-extension": [ "error", { "extensions": [".js", ".tsx"] } ], "react/require-default-props": [ "error", { "ignoreFunctionalComponents": true } ], "react/state-in-constructor": "off", "react/static-property-placement": "off", "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/ban-types": ["error", { "extendDefaults": true }], "@typescript-eslint/camelcase": "off", "@typescript-eslint/consistent-indexed-object-style": "error", "@typescript-eslint/consistent-type-assertions": "error", "@typescript-eslint/consistent-type-definitions": ["error", "interface"], "@typescript-eslint/dot-notation": "off", "dot-notation": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/member-ordering": [ "error", { "default": { "memberTypes": ["field", "constructor", "method", "signature"], "order": "alphabetically" } } ], "@typescript-eslint/naming-convention": "off", "@typescript-eslint/no-base-to-string": "error", "@typescript-eslint/no-confusing-non-null-assertion": "error", "@typescript-eslint/no-confusing-void-expression": "error", "@typescript-eslint/no-duplicate-imports": "error", "no-duplicate-imports": "off", "@typescript-eslint/no-dynamic-delete": "error", "@typescript-eslint/no-extraneous-class": "error", "@typescript-eslint/no-implicit-any-catch": "error", "@typescript-eslint/no-invalid-void-type": "error", "@typescript-eslint/non-nullable-type-assertion-style": "off", "@typescript-eslint/no-parameter-properties": "error", "@typescript-eslint/no-require-imports": "error", "@typescript-eslint/no-shadow": "error", "no-shadow": "off", "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error", "@typescript-eslint/no-unnecessary-condition": "error", "@typescript-eslint/no-unnecessary-qualifier": "off", "@typescript-eslint/no-unnecessary-type-arguments": "off", "@typescript-eslint/no-unnecessary-type-constraint": "error", "@typescript-eslint/no-unused-vars": [ "error", { "argsIgnorePattern": "^_" } ], "@typescript-eslint/no-use-before-define": "error", "no-use-before-define": "off", "@typescript-eslint/prefer-includes": "error", "@typescript-eslint/prefer-nullish-coalescing": "error", "@typescript-eslint/prefer-optional-chain": "error", "@typescript-eslint/prefer-readonly": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/prefer-reduce-type-parameter": "off", "@typescript-eslint/prefer-string-starts-ends-with": "error", "@typescript-eslint/promise-function-async": "error", "@typescript-eslint/sort-type-union-intersection-members": "off", "@typescript-eslint/strict-boolean-expressions": "error", "@typescript-eslint/switch-exhaustiveness-check": "error", "@typescript-eslint/unified-signatures": "error" } }