module.exports = { "extends": [ "airbnb-typescript/base" ], "env": { "browser": true, "node": true }, "parser": "@typescript-eslint/parser", "parserOptions": { "project": "tsconfig.json", }, "plugins": [ "@typescript-eslint", "@typescript-eslint/tslint" ], "rules": { "arrow-parens": ["off", "as-needed"], "@typescript-eslint/indent": ['off', 2], "import/extensions": "off", "import/no-unresolved": "off", "max-classes-per-file": "off", "max-len": ["off", { "code": 140, "ignorePattern": "import *" }], // smaller than 140? "no-plusplus": "off", "object-curly-newline": ["off", { "ImportDeclaration": "never" }], "quote-props": ["warn", "as-needed"], // This rules shall be activated after they were corrected //"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], //"comma-dangle": ["error", "only-multiline"], //"function-paren-newline": ["error", "consistent"], //"no-underscore-dangle": ["error", { "allow": ["_links", "__karma__"] }], //"no-param-reassign": ["error", { "props": false }], // all following rules SHOULD be removed "class-methods-use-this": "off", "import/order": "off", "import/prefer-default-export": "off", "no-underscore-dangle": "off", "no-useless-escape": "off", "object-curly-spacing": "off", "padded-blocks": "off", "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-unused-expressions": "off", "@typescript-eslint/semi": "off", // all following rules MUST be removed (mostly autofix) "linebreak-style": ["off", "unix"], // own PR "comma-dangle": "off", "function-paren-newline": "off", "lines-between-class-members": "off", "no-restricted-syntax": "off", "consistent-return": "off", "no-return-assign": "off", "prefer-destructuring": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-useless-constructor": "off", "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/camelcase": "off", "no-multi-assign": "off", "no-param-reassign": "off", "no-new-object": "off", "array-callback-return": "off", "no-mixed-operators": "off", "no-multi-str": "off", "no-nested-ternary": "off", "no-sequences": "off", "no-tabs": "off", "no-self-assign": "off", "global-require": "off", "no-prototype-builtins": "off", "no-else-return": "off", "prefer-template": "off", "dot-notation": "off", "quote-props": "off", "comma-style": "off", "@typescript-eslint/quotes": "off", "array-bracket-spacing": "off", "no-unexpected-multiline": "off", "@typescript-eslint/func-call-spacing": "off", "no-spaced-func": "off", "no-multi-spaces": "off", "prefer-arrow-callback": "off", "func-names": "off", "operator-linebreak": "off", "no-extra-semi": "off", "arrow-body-style": "off", "no-var": "off", "import/newline-after-import": 0, "import/no-duplicates": 0, "one-var": 0, "one-var-declaration-per-line": 0, "object-property-newline": 0, "space-before-function-paren": 0, "comma-spacing": 0, "object-shorthand": 0, "no-multiple-empty-lines": 0, "space-in-parens": 0, "prefer-object-spread": 0, "operator-assignment": 0, "import/no-useless-path-segments": 0, "no-undef-init": 0, "@typescript-eslint/no-array-constructor": 0, } };