UNPKG

3.14 kBPlain TextView Raw
1{
2 "plugins": [
3 "react"
4 ],
5 "extends": "airbnb",
6 "env": {
7 "browser": true,
8 "node": true,
9 "es6": true
10 },
11 "parser": "babel-eslint",
12 "parserOptions": {
13 "ecmaVersion": 7,
14 "sourceType": "module",
15 "ecmaFeatures": {
16 "experimentalObjectRestSpread": true,
17 "jsx": true
18 }
19 },
20 "rules": {
21 "arrow-body-style": 0,
22 "block-spacing": 2,
23 "brace-style": [2, "1tbs"],
24 "callback-return": [2, ["cb", "callback", "next"]],
25 "camelcase": [2, { "properties": "never" }],
26 "comma-spacing": 2,
27 "comma-style": [2, "last"],
28 "comma-dangle": [2, "never"],
29 "consistent-return": 2,
30 "curly": [2, "all"],
31 "default-case": 2,
32 "dot-notation": [2, { "allowKeywords": true }],
33 "eol-last": 2,
34 "eqeqeq": 2,
35 "func-names": 0,
36 "indent": [2, 4],
37 "key-spacing": [2, {
38 "beforeColon": false,
39 "afterColon": true
40 }],
41 "max-len": [1, 160, 2, { "ignoreComments": true }],
42 "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
43 "new-parens": 2,
44 "no-alert": 2,
45 "no-array-constructor": 2,
46 "no-caller": 2,
47 "no-cond-assign": [2, "except-parens"],
48 "no-const-assign": 2,
49 "no-console": [1, { "allow": ["assert", "warn", "error"]}],
50 "no-else-return": 0,
51 "no-lone-blocks": 0,
52 "no-param-reassign": 0,
53 "no-shadow": 0,
54 "no-var": 1,
55 "no-unused-expressions": [2, {
56 "allowShortCircuit": true,
57 "allowTernary": true
58 }],
59 "no-unused-vars": [1, {
60 "vars": "local",
61 "args": "none"
62 }],
63 "no-use-before-define": 0,
64 "object-shorthand": 0,
65 "one-var": 0,
66 "one-var-declaration-per-line": 0,
67 "prefer-const": 0,
68 "prefer-template": 0,
69 "quote-props": [0, "as-needed"],
70 "quotes": [2, "single"],
71 "space-before-function-paren": 0,
72 "spaced-comment": 0,
73 "vars-on-top": 0,
74
75 "react/jsx-boolean-value": 0,
76 "react/jsx-curly-spacing": 1,
77 "react/jsx-indent-props": [1, 4],
78 "react/jsx-max-props-per-line": [1, { "maximum": 3 }],
79 "react/jsx-no-bind": [1, {
80 "ignoreRefs": false,
81 "allowArrowFunctions": true,
82 "allowBind": false
83 }],
84 "react/jsx-no-duplicate-props": 1,
85 "react/jsx-no-undef": 1,
86 "react/jsx-uses-react": 1,
87 "react/jsx-uses-vars": 1,
88 "react/no-danger": 1,
89 "react/no-did-mount-set-state": 1,
90 "react/no-did-update-set-state": 1,
91 "react/no-multi-comp": [1, { "ignoreStateless": true }],
92 "react/no-unknown-property": 1,
93 "react/prefer-stateless-function": 1,
94 "react/prop-types": [1, { "ignore": ["className"] }],
95 "react/react-in-jsx-scope": 1,
96 "react/require-extension": 1,
97 "react/self-closing-comp": 1,
98 "react/sort-comp": 0,
99 "react/wrap-multilines": 1
100 }
101}