UNPKG

eslint-config-impetus-ianalyzer

Version:

Impetus's ESLint config providing styleguide for essential, recommended and Sonar rules profile for Angular, React, Vue, TypeScript and JS projects.

74 lines (73 loc) 2.45 kB
module.exports = { rules: { "semi": "off", "quotes": "off", "space-before-function-paren": "off", "func-call-spacing": "off", "keyword-spacing": "off", "space-infix-ops": "off", "arrow-spacing": "error", "arrow-parens": "error", "comma-spacing": "off", "brace-style": "off", "object-curly-spacing": "off", "array-bracket-spacing": "error", "computed-property-spacing": "error", "space-in-parens": "error", "space-before-blocks": "error", "key-spacing": "error", "no-trailing-spaces": "error", "eol-last": "error", "block-spacing": "error", "nonblock-statement-body-position": "error", "no-whitespace-before-property": "error", "no-useless-constructor": "off", "no-restricted-imports": "off", "no-console": "error", "comma-dangle": 0, "linebreak-style": 0, "indent": "off", "camelcase": 1, "arrow-body-style": "off", "one-var": "off", "one-var-declaration-per-line": "off", "spaced-comment": "off", "prefer-template": "off", "no-plusplus": "off", "no-restricted-syntax": "off", "consistent-return": "off", "prefer-promise-reject-errors": "off", "no-return-await": "off", "lines-between-class-members": "off", "newline-per-chained-call": "off", "no-use-before-define": "off", "function-paren-newline": "off", "object-curly-newline": "off", "max-lines": ["off", 1000], "max-params": ["off", 4], "no-array-constructor": "error", "no-bitwise": "error", "no-lonely-if": "error", "no-multi-assign": "error", "no-nested-ternary": "error", "no-new-object": "error", "no-underscore-dangle": "off", "no-unneeded-ternary": "error", "no-explicit-any": "off", "sonarjs/no-duplicate-string": "off", "consistent-this": ["off", "that"], "func-name-matching": "error", "func-style": ["error", "declaration", { "allowArrowFunctions": true }], "max-depth": "off", "operator-assignment": "error", "prefer-destructuring": ["error", { "object": true, "array": false }], "prefer-numeric-literals": "error", "prefer-rest-params": "error", "prefer-spread": "error", "import/order": "off", "import/newline-after-import":"off", "import/no-unresolved": "off", "import/prefer-default-export": "off", "quote-props":"off" } };