kopia lustrzana https://github.com/c9/core
Add React rules for style checks
rodzic
c471ab0e4c
commit
f42987744b
37
.eslintrc
37
.eslintrc
|
@ -10,6 +10,9 @@ env:
|
|||
jasmine: false
|
||||
es6: false
|
||||
|
||||
plugins:
|
||||
- react
|
||||
|
||||
rules:
|
||||
handle-callback-err: 1
|
||||
no-debugger: 1
|
||||
|
@ -43,6 +46,40 @@ rules:
|
|||
semi: 3
|
||||
no-extra-semi: 3
|
||||
|
||||
// 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-multi-comp: 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
|
||||
require-extension: [1, { extensions: [".js", ".jsx"] }]
|
||||
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-literals: 1
|
||||
jsx-no-undef: 1
|
||||
jsx-pascal-case: 1
|
||||
jsx-sort-props: 1
|
||||
jsx-uses-react: 1
|
||||
|
||||
default-case: 3
|
||||
keyword-spacing: [1, {"before": true, "after": true, "overrides": { "catch": {"after": "maybe" } }}]
|
||||
space-in-parens: [1, "never"]
|
||||
|
|
Ładowanie…
Reference in New Issue