"Fossies" - the Fresh Open Source Software Archive

Member "angular.js-1.8.2/.eslintrc-base.json" (21 Oct 2020, 3762 Bytes) of package /linux/www/angular.js-1.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "rules": {
    3     // Rules are divided into sections from http://eslint.org/docs/rules/
    4 
    5     // Possible errors
    6     "comma-dangle": ["error", "never"],
    7     "no-cond-assign": ["error", "except-parens"],
    8     "no-constant-condition": ["error", {"checkLoops": false}],
    9     "no-control-regex": "error",
   10     "no-debugger": "error",
   11     "no-dupe-args": "error",
   12     "no-dupe-keys": "error",
   13     "no-duplicate-case": "error",
   14     "no-empty-character-class": "error",
   15     "no-empty": "error",
   16     "no-ex-assign": "error",
   17     "no-extra-boolean-cast": "error",
   18     "no-extra-semi": "error",
   19     "no-func-assign": "error",
   20     "no-inner-declarations": "error",
   21     "no-invalid-regexp": "error",
   22     "no-irregular-whitespace": "error",
   23     "no-negated-in-lhs": "error",
   24     "no-obj-calls": "error",
   25     "no-regex-spaces": "error",
   26     "no-sparse-arrays": "error",
   27     "no-unreachable": "error",
   28     "use-isnan": "error",
   29     "no-unsafe-finally": "error",
   30     "valid-typeof": "error",
   31     "no-unexpected-multiline": "error",
   32 
   33     // Best practices
   34     "accessor-pairs": "error",
   35     "array-callback-return": "error",
   36     "eqeqeq": ["error", "allow-null"],
   37     "no-alert": "error",
   38     "no-caller": "error",
   39     "no-case-declarations": "error",
   40     "no-eval": "error",
   41     "no-extend-native": "error",
   42     "no-extra-bind": "error",
   43     "no-extra-label": "error",
   44     "no-fallthrough": "error",
   45     "no-floating-decimal": "error",
   46     "no-implied-eval": "error",
   47     "no-invalid-this": "error",
   48     "no-iterator": "error",
   49     "no-multi-str": "error",
   50     "no-new-func": "error",
   51     "no-new-wrappers": "error",
   52     "no-new": "error",
   53     "no-octal-escape": "error",
   54     "no-octal": "error",
   55     "no-proto": "error",
   56     "no-redeclare": "error",
   57     "no-return-assign": "error",
   58     "no-script-url": "error",
   59     "no-self-assign": "error",
   60     "no-self-compare": "error",
   61     "no-sequences": "error",
   62     "no-throw-literal": "error",
   63     "no-unmodified-loop-condition": "error",
   64     "no-unused-expressions": "error",
   65     "no-unused-labels": "error",
   66     "no-useless-call": "error",
   67     "no-useless-concat": "error",
   68     "no-useless-escape": "error",
   69     "no-void": "error",
   70     "no-with": "error",
   71     "radix": "error",
   72     "wrap-iife": ["error", "inside"],
   73 
   74     // Strict mode
   75     "strict": ["error", "global"],
   76 
   77     // Variables
   78     "no-delete-var": "error",
   79     "no-label-var": "error",
   80     "no-restricted-globals": ["error", "event"],
   81     "no-shadow-restricted-names": "error",
   82     "no-undef-init": "error",
   83     "no-undef": "error",
   84     "no-unused-vars": ["error", { "vars": "local", "args": "none" }],
   85 
   86     // Node.js
   87     "handle-callback-err": "error",
   88 
   89     // Stylistic issues
   90     "array-bracket-spacing": ["error", "never"],
   91     "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
   92     "comma-style": ["error", "last"],
   93     "eol-last": "error",
   94     "keyword-spacing": "error",
   95     "linebreak-style": ["error", "unix"],
   96     "max-len": ["error", { "code": 200, "ignoreComments": true, "ignoreUrls": true }],
   97     "new-cap": "error",
   98     "new-parens": "error",
   99     "no-array-constructor": "error",
  100     "no-bitwise": "error",
  101     "no-mixed-spaces-and-tabs": "error",
  102     "no-multiple-empty-lines": ["error", { "max": 3, "maxEOF": 1 }],
  103     "no-whitespace-before-property": "error",
  104     "no-spaced-func": "error",
  105     "no-trailing-spaces": "error",
  106     "no-unneeded-ternary": "error",
  107     "quotes": ["error", "single"],
  108     "semi-spacing": "error",
  109     "semi": "error",
  110     "space-before-blocks": ["error", "always"],
  111     "space-before-function-paren": ["error", "never"],
  112     "space-in-parens": ["error", "never"],
  113     "space-infix-ops": "error",
  114     "space-unary-ops": ["error", { "words": true, "nonwords": false }],
  115     "unicode-bom": ["error", "never"]
  116   }
  117 }