|
1 | 1 | {
|
2 |
| - "parser": "babel-eslint", |
3 |
| - |
4 | 2 | "env": {
|
5 |
| - "browser": true, |
6 |
| - "node": true, |
7 |
| - "es6": true |
8 |
| - }, |
9 |
| - |
10 |
| - "parserOptions": { |
11 |
| - "sourceType": "module", |
12 |
| - "ecmaFeatures": { |
13 |
| - "jsx": true |
14 |
| - } |
| 3 | + "browser": true |
15 | 4 | },
|
16 | 5 |
|
17 |
| - "extends": ["prettier", "prettier/flowtype", "prettier/react"], |
| 6 | + "extends": ["callstack-io"], |
18 | 7 |
|
19 |
| - "plugins": [ |
20 |
| - "babel", |
21 |
| - "flowtype", |
22 |
| - "import", |
23 |
| - "react", |
24 |
| - "react-native", |
25 |
| - "prettier" |
26 |
| - ], |
| 8 | + "plugins": ["react-native"], |
27 | 9 |
|
28 | 10 | "rules": {
|
29 |
| - "constructor-super": "error", |
30 |
| - "no-case-declarations": "error", |
31 |
| - "no-class-assign": "error", |
32 |
| - "no-cond-assign": "error", |
33 |
| - "no-const-assign": "error", |
34 |
| - "no-constant-condition": "error", |
35 |
| - "no-control-regex": "error", |
36 |
| - "no-delete-var": "error", |
37 |
| - "no-dupe-args": "error", |
38 |
| - "no-dupe-class-members": "error", |
39 |
| - "no-dupe-keys": "error", |
40 |
| - "no-duplicate-case": "error", |
41 |
| - "no-empty": "error", |
42 |
| - "no-empty-character-class": "error", |
43 |
| - "no-empty-pattern": "error", |
44 |
| - "no-ex-assign": "error", |
45 |
| - "no-extra-boolean-cast": "error", |
46 |
| - "no-extra-semi": "error", |
47 |
| - "no-fallthrough": "error", |
48 |
| - "no-func-assign": "error", |
49 |
| - "no-global-assign": "error", |
50 |
| - "no-inner-declarations": "error", |
51 |
| - "no-invalid-regexp": "error", |
52 |
| - "no-new-symbol": "error", |
53 |
| - "no-obj-calls": "error", |
54 |
| - "no-octal": "error", |
55 |
| - "no-redeclare": "error", |
56 |
| - "no-regex-spaces": "error", |
57 |
| - "no-self-assign": "error", |
58 |
| - "no-sparse-arrays": "error", |
59 |
| - "no-this-before-super": "error", |
60 |
| - "no-undef": "error", |
61 |
| - "no-unexpected-multiline": "error", |
62 |
| - "no-unreachable": "error", |
63 |
| - "no-unsafe-finally": "error", |
64 |
| - "no-unsafe-negation": "error", |
65 |
| - "no-unused-labels": "error", |
66 |
| - "no-unused-vars": "error", |
67 |
| - "require-yield": "error", |
68 |
| - "use-isnan": "error", |
69 |
| - "valid-typeof": "error", |
70 |
| - |
71 |
| - "babel/new-cap": "off", |
72 |
| - "babel/object-curly-spacing": "off", |
73 |
| - "babel/arrow-parens": "off", |
| 11 | + "one-var": "off", |
| 12 | + "no-multi-assign": "off", |
| 13 | + "no-nested-ternary": "off", |
| 14 | + "global-require": "off", |
74 | 15 |
|
75 |
| - "flowtype/boolean-style": ["error", "boolean"], |
76 | 16 | "flowtype/define-flow-type": "error",
|
77 |
| - "flowtype/no-dupe-keys": "error", |
78 |
| - "flowtype/no-primitive-constructor-types": "error", |
79 | 17 | "flowtype/no-weak-types": "off",
|
80 |
| - "flowtype/require-parameter-type": "off", |
81 |
| - "flowtype/require-return-type": "off", |
82 |
| - "flowtype/require-valid-file-annotation": "error", |
83 | 18 | "flowtype/require-variable-type": "off",
|
84 | 19 | "flowtype/sort-keys": "off",
|
85 | 20 | "flowtype/type-id-match": "off",
|
86 | 21 | "flowtype/use-flow-type": "error",
|
87 | 22 | "flowtype/valid-syntax": "error",
|
88 | 23 |
|
89 |
| - "import/no-unresolved": "error", |
90 |
| - "import/named": "error", |
91 |
| - "import/default": "off", |
92 |
| - "import/namespace": "off", |
93 |
| - "import/export": "error", |
94 |
| - "import/no-named-as-default": "off", |
95 |
| - "import/no-named-as-default-member": "off", |
96 |
| - "import/no-deprecated": "off", |
97 | 24 | "import/no-extraneous-dependencies": "off",
|
98 |
| - "import/no-commonjs": "error", |
99 |
| - "import/no-amd": "error", |
100 |
| - "import/no-nodejs-modules": "off", |
101 |
| - "import/imports-first": "error", |
102 |
| - "import/no-duplicates": "error", |
103 |
| - "import/no-namespace": "off", |
104 |
| - "import/extensions": ["error", { "js": "never", "json": "always" }], |
105 |
| - "import/order": "off", |
106 |
| - |
107 |
| - "react/display-name": "off", |
108 |
| - "react/forbid-prop-types": "off", |
109 |
| - "react/no-danger": "error", |
110 |
| - "react/no-deprecated": "error", |
111 |
| - "react/no-did-mount-set-state": "error", |
112 |
| - "react/no-did-update-set-state": "error", |
113 |
| - "react/no-direct-mutation-state": "error", |
114 |
| - "react/no-is-mounted": "error", |
115 |
| - "react/no-multi-comp": "off", |
116 |
| - "react/no-set-state": "off", |
117 |
| - "react/no-string-refs": "error", |
118 |
| - "react/no-unknown-property": "error", |
119 |
| - "react/prefer-es6-class": "error", |
120 |
| - "react/prop-types": "error", |
121 |
| - "react/react-in-jsx-scope": "error", |
122 |
| - "react/require-render-return": "error", |
123 |
| - "react/self-closing-comp": "error", |
124 |
| - "react/sort-comp": "error", |
125 |
| - "react/sort-prop-types": "off", |
126 |
| - "react/jsx-boolean-value": ["error", "never"], |
127 |
| - "react/jsx-handler-names": "off", |
128 |
| - "react/jsx-key": "error", |
129 |
| - "react/jsx-no-bind": "off", |
130 |
| - "react/jsx-no-duplicate-props": "error", |
131 |
| - "react/jsx-no-literals": "off", |
132 |
| - "react/jsx-no-undef": "error", |
133 |
| - "react/jsx-pascal-case": "off", |
134 |
| - "react/jsx-sort-props": "off", |
135 |
| - "react/jsx-uses-react": "error", |
136 |
| - "react/jsx-uses-vars": "error", |
137 |
| - |
138 |
| - "react-native/no-unused-styles": "error", |
139 |
| - "react-native/split-platform-components": "off", |
140 |
| - |
141 |
| - "prettier/prettier": [ |
142 |
| - "error", |
143 |
| - { "trailingComma": "es5", "singleQuote": true } |
144 |
| - ], |
| 25 | + "import/first": "off", |
145 | 26 |
|
146 |
| - "jsx-a11y/href-no-hash": "off" |
| 27 | + "react-native/no-unused-styles": "off", |
| 28 | + "react/no-unused-prop-types": "off", |
| 29 | + "react-native/split-platform-components": "off" |
147 | 30 | }
|
148 | 31 | }
|
0 commit comments