Skip to content

Commit 17c0e74

Browse files
authored
Merge pull request #8 from synonymdev/add-example-and-checks
Example Updates & Lightning Manager Start Checks
2 parents a974a39 + e42a027 commit 17c0e74

File tree

24 files changed

+3297
-1804
lines changed

24 files changed

+3297
-1804
lines changed

example/.eslintrc.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,69 @@ module.exports = {
22
root: true,
33
extends: '@react-native-community',
44
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
globals: {
7+
localStorage: false,
8+
},
9+
rules: {
10+
semi: 'off',
11+
'@typescript-eslint/semi': ['error'],
12+
'no-shadow': 'off',
13+
'@typescript-eslint/no-shadow': 'error',
14+
'@typescript-eslint/no-unused-vars': 'error',
15+
'react-hooks/rules-of-hooks': 'error',
16+
'react-hooks/exhaustive-deps': 'warn',
17+
'no-console': 0,
18+
'no-empty': ['error', { allowEmptyCatch: true }],
19+
'no-buffer-constructor': 0,
20+
'no-case-declarations': 0,
21+
'no-useless-escape': 0,
22+
'react/jsx-no-duplicate-props': [2, { ignoreCase: true }],
23+
'react-native/no-unused-styles': 1,
24+
'react-native/no-raw-text': 0,
25+
'react/jsx-equals-spacing': [2, 'never'],
26+
'react/no-unsafe': [2, { checkAliases: true }],
27+
'react/jsx-curly-spacing': [
28+
2,
29+
{
30+
when: 'never',
31+
attributes: { allowMultiline: true },
32+
children: true,
33+
},
34+
],
35+
indent: [
36+
2,
37+
'tab',
38+
{ SwitchCase: 1, ignoredNodes: ['ConditionalExpression'] },
39+
],
40+
'object-curly-spacing': [
41+
'error',
42+
'always',
43+
{
44+
objectsInObjects: true,
45+
},
46+
],
47+
'react/jsx-uses-vars': 2,
48+
'react/jsx-wrap-multilines': 2,
49+
'react/jsx-tag-spacing': [
50+
2,
51+
{
52+
closingSlash: 'never',
53+
beforeSelfClosing: 'always',
54+
afterOpening: 'never',
55+
beforeClosing: 'never',
56+
},
57+
],
58+
'react/jsx-indent': [2, 'tab', { indentLogicalExpressions: false }],
59+
'react/jsx-child-element-spacing': 2,
60+
'react/no-unused-prop-types': 2,
61+
'react/prop-types': 0,
62+
'no-undef': 0,
63+
'react/display-name': 0,
64+
'require-atomic-updates': 0,
65+
'no-async-promise-executor': 0,
66+
'brace-style': [2, '1tbs', { allowSingleLine: true }],
67+
'@typescript-eslint/explicit-function-return-type': 'warn',
68+
'jest/no-disabled-tests': 0,
69+
},
570
};

0 commit comments

Comments
 (0)