jeresig/pharos-images

View on GitHub
.eslintrc

Summary

Maintainability
Test Coverage
{
    "rules": {
        "array-callback-return": 2,
        "arrow-spacing": 2,
        "brace-style": [2, "1tbs", { "allowSingleLine": true }],
        "camelcase": [2, { "properties": "never" }],
        "comma-dangle": [1, "always-multiline"],
        "comma-spacing": [2, { "before": false, "after": true }],
        "constructor-super": 2,
        "curly": 2,
        "dot-location": [2, "property"],
        "dot-notation": 2,
        "eol-last": 1,
        "eqeqeq": 2,
        "guard-for-in": 0,
        "indent": [2, 4, {"SwitchCase": 1}],
        "keyword-spacing": 2,
        "linebreak-style": [2, "unix"],
        "max-len": [1, 80, 4, { "ignoreUrls": true, "ignorePattern": "\\brequire\\([\"']|eslint-disable" }],
        "no-alert": 2,
        "no-array-constructor": 2,
        "no-caller": 2,
        "no-console": 0,
        "no-const-assign": 2,
        "no-debugger": 2,
        "no-dupe-class-members": 2,
        "no-dupe-keys": 2,
        "no-else-return": 2,
        "no-empty-function": 2,
        "no-empty-pattern": 2,
        "no-eval": 2,
        "no-extend-native": 2,
        "no-extra-bind": 2,
        //"no-implicit-coercion": 2,
        "no-implied-eval": 2,
        "no-lone-blocks": 2,
        "no-loop-func": 2,
        //"no-magic-numbers": [2, {"ignoreArrayIndexes": true, "enforceConst": true}],
        "no-multi-spaces": 2,
        "no-multi-str": 2,
        "no-native-reassign": 2,
        "no-new": 2,
        "no-new-func": 2,
        "no-new-object": 2,
        "no-new-wrappers": 2,
        "no-param-reassign": [2, { "props": false }],
        "no-redeclare": 2,
        "no-return-assign": 2,
        "no-self-assign": 2,
        "no-self-compare": 2,
        "no-sequences": 2,
        "no-spaced-func": 2,
        "no-this-before-super": 2,
        "no-throw-literal": 2,
        "no-trailing-spaces": 2,
        "no-undef": 2,
        "no-unexpected-multiline": 2,
        "no-unmodified-loop-condition": 2,
        "no-unreachable": 2,
        "no-unused-expressions": 2,
        "no-unused-vars": [2, {"varsIgnorePattern": "^_*$"}],
        "no-useless-call": 2,
        "no-useless-concat": 2,
        "no-void": 2,
        "no-with": 2,
        "one-var": [2, "never"],
        "prefer-const": 2,
        "prefer-spread": 2,
        "prefer-template": 2,
        "react/forbid-prop-types": [2, { "forbid": [ "array", "object" ] }],
        "react/jsx-closing-bracket-location": [2, "line-aligned"],
        "react/jsx-curly-spacing": [2, "never"],
        "react/jsx-indent-props": 2,
        "react/jsx-no-duplicate-props": 2,
        "react/jsx-no-undef": 2,
        "react/jsx-sort-props": 0,
        "react/jsx-uses-react": 2,
        "react/jsx-uses-vars": 2,
        "react/no-did-mount-set-state": 2,
        "react/no-did-update-set-state": 2,
        "react/no-direct-mutation-state": 2,
        "react/no-unknown-property": 2,
        "react/prop-types": 2,
        "react/self-closing-comp": 2,
        "react/sort-comp": 2,
        "react/sort-prop-types": 2,
        "semi": [2, "always"],
        "space-before-blocks": 2,
        "space-before-function-paren": [2, "never"],
        "space-infix-ops": 2,
        "space-unary-ops": 2,
        "strict": [2, "global"],
        "arrow-parens": 1,
        "no-var": 1,
        "prefer-arrow-callback": 1,
        "object-curly-spacing": [0, "always"],
        "yoda": 2
    },
    "ecmaFeatures": {
        "arrowFunctions": true,
        "blockBindings": true,
        "classes": true,
        "destructuring": true,
        "experimentalObjectRestSpread": true,
        "forOf": true,
        "jsx": true,
        "restParams": true,
        "spread": true,
        "templateStrings": true
    },
    "plugins": [
        "react"
    ],
    "parserOptions": {
        "ecmaFeatures": {
            "jsx": true
        }
    },
    "env": {
        "es6": true,
        "node": true,
        "browser": true
    },
    "extends": "eslint:recommended"
}