UNPKG

1.4 kBJSONView Raw
1{
2 "extends": ["react-app", "prettier", "prettier/react"],
3 "env": {
4 "es6": true,
5 "browser": true,
6 "node": true
7 },
8 "parser": "babel-eslint",
9 "parserOptions": {
10 "ecmaVersion": 6,
11 "ecmaFeatures": {
12 "jsx": true,
13 "classes": true,
14 "defaultParams": true,
15 "experimentalObjectRestSpread": true,
16 "impliedStrict": true
17 }
18 },
19 "plugins": ["react", "prettier"],
20 "rules": {
21 "prettier/prettier": [
22 "error",
23 {
24 "trailingComma": "none",
25 "singleQuote": true,
26 "printWidth": 120
27 }
28 ],
29 "react/jsx-filename-extension": [
30 2,
31 {
32 "extensions": [".js", ".jsx"]
33 }
34 ],
35 "react/jsx-closing-bracket-location": [2, "line-aligned"],
36 "react/jsx-tag-spacing": 2,
37 "react/prefer-stateless-function": 0,
38 "react/no-multi-comp": [
39 2,
40 {
41 "ignoreStateless": true
42 }
43 ],
44 "react/prop-types": [
45 2,
46 {
47 "skipUndeclared": true
48 }
49 ],
50 "react/jsx-wrap-multilines": [
51 2,
52 {
53 "declaration": true,
54 "assignment": true,
55 "return": true,
56 "arrow": true
57 }
58 ],
59 "import/prefer-default-export": 0,
60 "react/jsx-no-target-blank": 2,
61 "react/no-danger": 2,
62 "react/jsx-no-duplicate-props": 2,
63 "react/jsx-pascal-case": 2,
64 "global-require": 0,
65 "no-console": 0
66 }
67}