-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
36 lines (35 loc) · 1.1 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
extends: [airbnb, plugin:flowtype/recommended]
env:
node: true
es6: true
browser: true
globals:
require: true
config: true
__DEV__: true
parser: babel-eslint
parserOptions:
ecmaVersion: 7
ecmaFeatures:
jsx: true
experimentalObjectRestSpread: true
sourceType: module
plugins: [react, flowtype]
rules:
max-len: [1, 140, 2, {"ignoreUrls":true}]
comma-dangle: [error, never]
no-console: [error, allow: [warn, error, info]]
react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }]
no-plusplus: ["error", { "allowForLoopAfterthoughts": true }]
react/forbid-prop-types: 0
arrow-parens: 0
no-underscore-dangle: 0
quotes: ["error", "double", { "avoidEscape": true }]
jsx-a11y/aria-role: 0
global-require: 0
arrow-body-style: 0
import/no-named-as-default-member: 0
react/jsx-wrap-multilines: ["error", {arrow: false}]
react/no-array-index-key: 0
react/sort-comp: ['error', { order: [ 'type-annotations', 'static-methods', 'lifecycle', '/^on.+$/', '/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/', 'everything-else', '/^render.+$/', 'render' ] }]