2015-05-05 15:20:51 +00:00
|
|
|
ecmaFeatures:
|
|
|
|
jsx: true
|
|
|
|
|
2015-02-10 19:41:24 +00:00
|
|
|
env:
|
|
|
|
node: true
|
|
|
|
browser: true
|
|
|
|
amd: true
|
|
|
|
builtin: true
|
|
|
|
mocha: true
|
|
|
|
jasmine: false
|
2015-05-05 15:20:51 +00:00
|
|
|
es6: false
|
2015-02-10 19:41:24 +00:00
|
|
|
|
2016-02-17 10:01:27 +00:00
|
|
|
plugins:
|
|
|
|
- react
|
|
|
|
|
2015-02-10 19:41:24 +00:00
|
|
|
rules:
|
|
|
|
handle-callback-err: 1
|
|
|
|
no-debugger: 1
|
|
|
|
no-undef: 1
|
|
|
|
no-inner-declarations: [1, "functions"]
|
|
|
|
no-native-reassign: 1
|
|
|
|
no-new-func: 1
|
|
|
|
no-new-wrappers: 1
|
|
|
|
no-cond-assign: [1, "except-parens"]
|
|
|
|
no-debugger: 3
|
|
|
|
no-dupe-keys: 3
|
2015-02-04 15:25:13 +00:00
|
|
|
no-eval: 3
|
2015-02-10 19:41:24 +00:00
|
|
|
no-func-assign: 1
|
|
|
|
no-invalid-regexp: 1
|
|
|
|
no-irregular-whitespace: 3
|
|
|
|
no-negated-in-lhs: 1
|
|
|
|
no-regex-spaces: 3
|
|
|
|
no-unreachable: 1
|
|
|
|
use-isnan: 2
|
|
|
|
valid-typeof: 1
|
|
|
|
no-redeclare: 3
|
|
|
|
no-with: 1
|
|
|
|
radix: 3
|
|
|
|
no-delete-var: 2
|
|
|
|
no-label-var: 3
|
|
|
|
no-shadow-restricted-names: 2
|
|
|
|
handle-callback-err: 1
|
|
|
|
no-new-require: 2
|
|
|
|
no-unused-vars: [3, {vars: "all", args: "none"}]
|
|
|
|
no-undef: 1
|
|
|
|
semi: 3
|
|
|
|
no-extra-semi: 3
|
|
|
|
|
2016-02-17 10:01:27 +00:00
|
|
|
// React rules
|
|
|
|
display-name: [1, { acceptTranspilerName: true }]
|
|
|
|
jsx-curly-spacing: 1
|
|
|
|
no-deprecated: [1, {react: "0.13.0"}]
|
|
|
|
no-did-mount-set-state: 1
|
|
|
|
no-did-update-set-state: 1
|
|
|
|
no-direct-mutation-state: 1
|
|
|
|
no-is-mounted: 1
|
|
|
|
no-set-state: 1
|
|
|
|
no-string-refs: 1
|
|
|
|
no-unknown-property: 1
|
|
|
|
prefer-es6-class: [1, "never"]
|
|
|
|
prop-types: 1
|
|
|
|
react-in-jsx-scope: 1
|
|
|
|
self-closing-comp: 1
|
|
|
|
sort-comp: 1
|
|
|
|
wrap-multilines: 1
|
|
|
|
jsx-boolean-value: [1, "always"]
|
|
|
|
jsx-equals-spacing: 1
|
|
|
|
jsx-handler-names: 1
|
|
|
|
jsx-indent-props: 1
|
|
|
|
jsx-key: 1
|
|
|
|
jsx-indent: 1
|
|
|
|
jsx-max-props-per-line: [1, { maximum: 3 }]
|
|
|
|
jsx-no-bind: 1
|
|
|
|
jsx-no-duplicate-props: 1
|
|
|
|
jsx-no-undef: 1
|
|
|
|
jsx-pascal-case: 1
|
|
|
|
jsx-uses-react: 1
|
|
|
|
|
2015-02-10 19:41:24 +00:00
|
|
|
default-case: 3
|
2016-02-08 09:29:06 +00:00
|
|
|
keyword-spacing: [1, {"before": true, "after": true, "overrides": { "catch": {"after": "maybe" } }}]
|
2015-08-28 09:39:13 +00:00
|
|
|
space-in-parens: [1, "never"]
|
2015-09-07 18:29:09 +00:00
|
|
|
// space-before-function-paren: [3, {"named": "never", "anonymous": "never"}]
|
2016-01-09 12:39:35 +00:00
|
|
|
spaced-comment: 3
|
2015-02-10 19:41:24 +00:00
|
|
|
// valid-jsdoc: [1, { requireReturn: false, requireParamDescription: false, prefer: { "return": "return" } }]
|