UNPKG

grunt-generate-view-model

Version:
114 lines (113 loc) 4.46 kB
export default { "env": { "browser": true, "es6": true, "es2017": true, "node": true }, "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", ], "parser": "@typescript-eslint/parser", "parserOptions": { "project": "tsconfig.json", "tsconfigRootDir": ".", }, "plugins": [ "@typescript-eslint" ], "settings": { "react": { "version": "detect", } }, "rules": { "no-explicit-any": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/interface-name-prefix": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-unsafe-assignment": "off", "no-shadow": "off", "no-explicit-any": "off", "@typescript-eslint/no-shadow": ["warn"], "eol-last": ["error"], "indent": ["error", 4, { "SwitchCase": 1, }], "id-match": ["error", "^[_a-zA-Z0-9]*$"], "quotes": [2, "single"], "no-console": ["warn"], "no-unreachable": ["error"], "eqeqeq": ["error"], "default-case": ["error"], "curly": ["error", "all"], "no-caller": ["error"], "no-case-declarations": ["off"], "no-constructor-return": ["error"], "no-constant-condition": ["off"], "no-extra-boolean-cast": ["off"], "no-empty-function": ["error"], "no-eval": ["error"], "no-implied-eval": ["error"], "no-extra-bind": ["error"], "no-labels": ["error"], "@typescript-eslint/no-magic-numbers": ["warn", { "ignore": [0, 1, -1, 10], "ignoreArrayIndexes": true, "ignoreEnums": true}], "@typescript-eslint/camelcase": ["off"], "@typescript-eslint/no-this-alias": ["error", {allowedNames: ['self']}], "no-multi-spaces": ["error"], "no-new-func": ["error"], "no-octal-escape": ["error"], "no-param-reassign": ["warn"], "no-proto": ["error"], "no-return-assign": ["error"], "no-return-await": ["error"], "no-throw-literal": ["error"], "no-unused-expressions": ["error"], "prefer-promise-reject-errors": ["error"], "prefer-regex-literals": ["warn"], "radix": ["error", "as-needed"], "require-await": ["error"], "strict": ["warn"], "init-declarations": ["warn"], "no-label-var": ["error"], "no-shadow": ["error"], "no-use-before-define": ["error"], "callback-return": ["error"], "global-require": ["error"], "array-bracket-spacing": ["error"], "block-spacing": ["error"], "comma-spacing": ["error"], "comma-style": ["error", "last"], "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0, "maxBOF": 1 },], "func-call-spacing": ["error", "never"], "func-style": ["error", "expression"], "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], "keyword-spacing": ["error", { "before": true, "after": true }], "max-depth": ["warn", 5], "max-len": ["error", { "code": 140, "ignoreComments": true, "ignoreStrings": true }], "max-lines": ["error", 600], "max-params": ["warn", 5], "max-statements-per-line": ["error", { "max": 1 }], "multiline-comment-style": ["error", "separate-lines"], "no-mixed-operators": ["warn"], "no-tabs": ["error"], "no-trailing-spaces": ["error"], "no-unneeded-ternary": ["error"], "no-whitespace-before-property": ["error"], "semi-spacing": ["error"], "semi": ["error", "always"], "space-before-blocks": ["error"], "switch-colon-spacing": ["error"], "arrow-spacing": ["error"], "no-duplicate-imports": ["error"], "prefer-spread": ["error"], "space-infix-ops": ["error"], "object-shorthand": ["warn"], "object-curly-spacing": ["warn", "always"], } };