Advertisement
Guest User

.eslintrc

a guest
Nov 14th, 2015
1,673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "parser": "babel-eslint",
  3.   "env": {
  4.     "es6": true,
  5.     "node": true
  6.   },
  7.   /**
  8.    * ES6
  9.    */
  10.   "ecmaFeatures": {
  11.     "arrowFunctions": true,
  12.     "binaryLiterals": true,
  13.     "blockBindings": true,
  14.     "classes": true,
  15.     "defaultParams": true,
  16.     "destructuring": true,
  17.     "forOf": true,
  18.     "generators": true,
  19.     "modules": true,
  20.     "objectLiteralComputedProperties": true,
  21.     "objectLiteralDuplicateProperties": true,
  22.     "objectLiteralShorthandMethods": true,
  23.     "objectLiteralShorthandProperties": true,
  24.     "octalLiterals": true,
  25.     "regexUFlag": true,
  26.     "regexYFlag": true,
  27.     "spread": true,
  28.     "superInFunctions": true,
  29.     "templateStrings": true,
  30.     "unicodeCodePointEscapes": true,
  31.     "globalReturn": true
  32.   },
  33.   "rules": {
  34.     /**
  35.      * Strict mode
  36.      */
  37.     "strict": [2, "never"],
  38.     "no-var": 2,
  39.     /**
  40.      * Basic errors
  41.      */
  42.     "comma-dangle": [2, "never"],
  43.     "no-cond-assign": [2, "always"],
  44.     "no-console": 0,
  45.     "no-debugger": 1,
  46.     "no-alert": 0,
  47.     "no-constant-condition": 1,
  48.     "no-dupe-keys": 2,
  49.     "no-duplicate-case": 2,
  50.     "no-empty": 2,
  51.     "no-ex-assign": 2,
  52.     "no-extra-boolean-cast": 1,
  53.     "no-extra-semi": 2,
  54.     "no-func-assign": 2,
  55.     "no-inner-declarations": 2,
  56.     "no-invalid-regexp": 2,
  57.     "no-irregular-whitespace": 2,
  58.     "no-obj-calls": 2,
  59.     "quote-props": 0,
  60.     "no-sparse-arrays": 2,
  61.     "no-unreachable": 2,
  62.     "use-isnan": 2,
  63.     "block-scoped-var": 2,
  64.     "quotes": [1, "single"],
  65.     /**
  66.      * Variables
  67.      */
  68.     "no-shadow": 2,
  69.     "no-shadow-restricted-names": 2,
  70.     "no-unused-vars": [2, {
  71.       "vars": "local",
  72.       "args": "after-used"
  73.     }],
  74.     "no-use-before-define": 2,
  75.     /**
  76.      * Best practices
  77.      */
  78.     "consistent-return": 2,
  79.     "curly": [2, "multi-line"],
  80.     "default-case": 2,
  81.     "dot-notation": [2, {
  82.       "allowKeywords": true
  83.     }],
  84.     "eqeqeq": 2,
  85.     "guard-for-in": 0,
  86.     "no-caller": 2,
  87.     "no-else-return": 1,
  88.     "no-eq-null": 2,
  89.     "no-eval": 2,
  90.     "no-extend-native": 2,
  91.     "no-extra-bind": 2,
  92.     "no-fallthrough": 2,
  93.     "no-floating-decimal": 2,
  94.     "no-implied-eval": 2,
  95.     "no-lone-blocks": 2,
  96.     "no-loop-func": 1,
  97.     "no-multi-str": 2,
  98.     "no-native-reassign": 2,
  99.     "no-new": 2,
  100.     "no-new-func": 2,
  101.     "no-new-wrappers": 2,
  102.     "no-octal": 2,
  103.     "no-octal-escape": 2,
  104.     "no-param-reassign": 1,
  105.     "no-proto": 2,
  106.     "no-redeclare": 2,
  107.     "no-return-assign": 2,
  108.     "no-script-url": 2,
  109.     "no-self-compare": 2,
  110.     "no-sequences": 2,
  111.     "no-throw-literal": 2,
  112.     "no-with": 2,
  113.     "radix": 2,
  114.     "vars-on-top": 0,
  115.     "wrap-iife": [2, "any"],
  116.     "yoda": 2,
  117.     /**
  118.      * Style
  119.      */
  120.     "indent": [2, "tab"],
  121.     "brace-style": [2,
  122.       "1tbs", {
  123.       "allowSingleLine": true
  124.     }],
  125.     "quotes": [
  126.       2, "single", "avoid-escape"
  127.     ],
  128.     "camelcase": [2, {
  129.       "properties": "never"
  130.     }],
  131.     "comma-spacing": [2, {
  132.       "before": false,
  133.       "after": true
  134.     }],
  135.     "comma-style": [2, "last"],
  136.     "eol-last": 2,
  137.     "key-spacing": [2, {
  138.         "beforeColon": false,
  139.         "afterColon": true
  140.     }],
  141.     "new-cap": [2, {
  142.       "newIsCap": true
  143.     }],
  144.     "no-multiple-empty-lines": [2, {
  145.       "max": 2
  146.     }],
  147.     "no-nested-ternary": 2,
  148.     "no-new-object": 2,
  149.     "no-spaced-func": 2,
  150.     "no-trailing-spaces": 2,
  151.     "no-extra-parens": 0,
  152.     "no-underscore-dangle": 0,
  153.     "one-var": [2, "never"],
  154.     "padded-blocks": [2, "never"],
  155.     "semi": [2, "always"],
  156.     "semi-spacing": [2, {
  157.       "before": false,
  158.       "after": true
  159.     }],
  160.     "space-after-keywords": 2,
  161.     "space-before-blocks": 2,
  162.     "space-before-function-paren": [2, "never"],
  163.     "space-infix-ops": 2,
  164.     "space-return-throw-case": 2,
  165.     "spaced-comment": 1
  166.   }
  167. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement