templates/angular/app/eslintrc
{
"plugins": ["angular"],
"env": {
"es6": true,
"browser": true,
"jasmine": true,
"commonjs": true,
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"regexYFlag": true,
"regexUFlag": true,
},
"globals": {
"angular": true
},
"rules": {
// Disabled
"complexity": 0,
"no-extend-native": 0,
"no-process-env": 0,
"init-declarations": 0,
"no-restricted-modules": 0,
"no-sync": 0,
"no-undef-init": 0,
"no-inline-comments": 0,
"no-new-object": 0,
"no-ternary": 0,
"padded-blocks": 0,
"no-inner-declarations": 0,
"id-length": 0,
"id-match": 0,
"no-underscore-dangle": 0,
"sort-vars": 0,
"max-statements": 0,
"max-params": 0,
"require-jsdoc": 0,
"comma-dangle": 0,
// Warning
"no-console": 1,
"no-control-regex": 1,
"no-empty": 1,
"no-func-assign": 1,
"consistent-return": 1,
"curly": [1, "all"],
"default-case": 1,
"dot-notation": 1,
"no-alert": 1,
"no-multi-spaces": [1, { "exceptions": { "VariableDeclarator": true, "AssignmentExpression": true, "ImportDeclaration": true } }],
"no-param-reassign": 1,
"no-warning-comments": [1, { "terms": ["todo", "fixme"], "location": "anywhere" }],
"radix": 1,
"no-path-concat": 1,
"no-process-exit": 1,
"lines-around-comment": [1, { "beforeBlockComment": true, "beforeLineComment": true, "allowBlockStart": true, "allowBlockEnd": true }],
"constructor-super": 1,
"prefer-template": 1,
"prefer-reflect": 1,
"max-depth": [1, 3],
"max-len": [1, 80, 4, {"ignoreComments": true, "ignoreUrls": true, "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\("}],
"no-bitwise": 1,
"global-require": 1,
// Error
"linebreak-style": [2, "unix"],
"no-caller": 2,
"no-cond-assign": 2,
"no-constant-condition": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": [2, "functions"],
"no-extra-semi": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-typeof": 2,
"no-unexpected-multiline": 2,
"accessor-pairs": [2, { "getWithoutSet": false, "setWithoutGet": true }],
"block-scoped-var": 2,
"eqeqeq": 2,
"guard-for-in": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-empty-label": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implicit-coercion": [2, { "boolean": false, "number": true, "string": true }],
"no-implied-eval": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-proto": 2,
"no-redeclare": [2, { "builtinGlobals": true }],
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unused-expressions": 2,
"no-useless-call": 2,
"no-useless-concat": 2,
"no-void": 2,
"no-with": 2,
"vars-on-top": 2,
"wrap-iife": 2,
"yoda": [2, "never", { "exceptRange": true }],
"strict": [2, "global"],
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-label-var": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 2,
"no-undef": 2,
"no-undefined": 2,
"no-unused-vars": 2,
"no-use-before-define": 2,
"callback-return": [2, ["callback", "cb", "next"]],
"handle-callback-err": 2,
"no-mixed-requires": 2,
"no-new-require": 2,
"array-bracket-spacing": [2, "never"],
"block-spacing": [2, "always"],
"camelcase": [2, { "properties": "always" }],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"eol-last": 2,
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"max-nested-callbacks": [2, 3],
"new-cap": 2,
"new-parens": 2,
"newline-after-var": [2, "always"],
"no-array-constructor": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"no-nested-ternary": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-unneeded-ternary": 2,
"object-curly-spacing": [2, "always"],
"operator-assignment": [2, "always"],
"quote-props": [2, "consistent-as-needed", { "keywords": false, "unnecessary": false }],
"semi-spacing": [2, { "before": false, "after": true }],
"semi": [2, "always"],
"space-after-keywords": [2, "always"],
"space-in-parens": [2, "never"],
"space-return-throw-case": 2,
"wrap-regex": 2,
"arrow-parens": [2, "always"],
"arrow-spacing": [2, { "before": true, "after": true }],
"generator-star-spacing": [2, "before"],
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-var": 2,
"object-shorthand": [2, "always"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-spread": 2,
"no-plusplus": 2,
"dot-location": [2, "property"],
"no-invalid-this": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"func-names": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"one-var": [2, { "uninitialized": "always", "initialized": "never" }],
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
"quotes": [2, "single", "avoid-escape"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
"space-infix-ops": [2, { "int32Hint": false }],
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always", { "exceptions": ["-", "+"] }],
"no-this-before-super": 2,
"require-yield": 2,
"valid-jsdoc": [2, { "prefer": { "return": "returns" }, "requireReturn": false }],
"space-before-keywords": [2, "always"],
"no-restricted-syntax": [2, "WithStatement"],
"no-negated-condition": 2,
"no-empty-pattern": 2,
"no-magic-numbers": 2,
//****************************************************************** Angular
// Disabled
"angular/di-order": 0,
"angular/directive-name": 0,
"angular/filter-name": 0,
"angular/foreach": 0,
"angular/function-type": 0,
"angular/module-name": 0,
"angular/no-angular-mock": 0,
"angular/no-controller": 0,
"angular/no-digest": 0,
"angular/no-service-method": 0,
"angular/no-services": 0,
"angular/rest-service": 0,
"angular/service-name": 0,
"angular/watchers-execution": 0,
"angular/directive-restrict": 0,
"angular/file-name": 0,
// Disabled because of bug (Module.name not supported)
"angular/module-dependency-order": 0,
// Disabled because of bug
"angular/component-limit": 0,
// Warning
"angular/deferred": 1,
"angular/no-inline-template": 1,
// Error
"angular/angularelement": 2,
"angular/controller-as": 2,
"angular/controller-as-route": 2,
"angular/controller-as-vm": [2, "vm"],
"angular/controller-name": [2, "/[A-Z].*Controller$/"],
"angular/definedundefined": 2,
"angular/di": [2, "function"],
"angular/document-service": 2,
"angular/empty-controller": 2,
"angular/interval-service": 2,
"angular/json-functions": 2,
"angular/log": 2,
"angular/module-getter":2,
"angular/module-setter":2,
"angular/no-cookiestore":2,
"angular/no-jquery-angularelement": 2,
"angular/no-private-call": 1,
"angular/on-watch": 2,
"angular/timeout-service": 2,
"angular/typecheck-array": 2,
"angular/typecheck-date": 2,
"angular/typecheck-function": 2,
"angular/typecheck-number": 2,
"angular/typecheck-object": 2,
"angular/typecheck-regexp": 2,
"angular/typecheck-string": 2,
"angular/window-service": 2,
"angular/no-http-callback": 2
}
}