Skip to content

Instantly share code, notes, and snippets.

@krambertech
Created November 1, 2016 19:55
Show Gist options
  • Select an option

  • Save krambertech/490f27b35d98f7d3954212d55074a547 to your computer and use it in GitHub Desktop.

Select an option

Save krambertech/490f27b35d98f7d3954212d55074a547 to your computer and use it in GitHub Desktop.

Revisions

  1. krambertech created this gist Nov 1, 2016.
    48 changes: 48 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    {
    "extends": "airbnb",

    "parser": "babel-eslint",

    "rules": {
    "indent": [2, 4, { "SwitchCase": 1 }],
    "max-len": [2, 120, 4, {
    "ignoreUrls": true,
    "ignoreComments": false
    }],
    "jsx-quotes": [2, "prefer-double"],
    "no-return-assign": 0,
    "react/jsx-indent-props": [2, 4],
    "react/jsx-indent": [2, 4],
    "react/jsx-max-props-per-line": [2, {maximum: 3}],
    "react/jsx-no-bind": [2, {
    "ignoreRefs": true
    }],
    'react/sort-comp': [2, {
    order: [
    'static-methods',
    'lifecycle',
    '/^handle.+$/',
    '/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/',
    'everything-else',
    '/^render.+$/',
    'render'
    ],
    }],
    },

    "env": {
    "browser": true,
    "node": true,
    "mocha": true,
    "es6": true
    },

    "settings": {
    "import/resolver": { "webpack": { config: 'webpack.dev.config.js' } }
    },

    "globals": {
    "$": true,
    "ga": true
    }
    }