.eslintrc
{
"parser": "babel-eslint",
"rules": {
"array-callback-return": 2,
"camelcase": [2, { "properties": "never" }],
"constructor-super": 2,
"curly": 2,
"dot-notation": 2,
"eqeqeq": 2,
"guard-for-in": 0,
"linebreak-style": [2, "unix"],
"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": 0,
//"no-magic-numbers": [2, {"ignoreArrayIndexes": true, "enforceConst": true}],
"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-this-before-super": 2,
"no-throw-literal": 2,
"no-undef": 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-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": 0,
"react/sort-prop-types": 2,
"strict": [2, "global"],
"arrow-parens": 0,
"no-var": 1,
"prefer-arrow-callback": 1,
"object-curly-spacing": [0, "always"],
"yoda": 2,
"flowtype/boolean-style": [2, "boolean"],
"flowtype/define-flow-type": 1, // suppress no-undef on flow types
"flowtype/no-dupe-keys": 2,
"flowtype/no-weak-types": 0, // allow 'any' for now
// flow may still require parameter types in certain situations
"flowtype/require-parameter-type": 0,
"flowtype/require-return-type": 0,
"flowtype/require-valid-file-annotation": [
2,
"always", {
"annotationStyle": "line"
}
],
"flowtype/sort": 0,
"flowtype/type-id-match": 0,
"flowtype/use-flow-type": 1, // suppress no-unused-vars on flow types
},
"plugins": [
"react",
"flowtype"
],
"env": {
"es6": true,
"node": true,
"browser": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"extends": [
"eslint:recommended",
"prettier",
"prettier/flowtype",
"prettier/react"
]
}