-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc_typescript_rn.json
75 lines (75 loc) · 2.14 KB
/
.eslintrc_typescript_rn.json
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"extends": [
"airbnb",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"@nitid/eslint-plugin-nitid"
],
"parser": "@typescript-eslint/parser",
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": {}
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true,
"jquery": true
},
"rules": {
"@typescript-eslint/no-shadow": 2,
"@typescript-eslint/no-unused-vars": 1,
"arrow-body-style": 0,
"arrow-parens": 2,
"camelcase": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "only-multiline"
}],
"dot-notation": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": [ "error", { "optionalDependencies": false }],
"import/prefer-default-export": 0,
"jsx-quotes": 1,
"jsx-a11y/click-events-have-key-events": 1,
"jsx-a11y/label-has-for": 1,
"jsx-a11y/label-has-associated-control": 1,
"jsx-a11y/no-static-element-interactions": 1,
"jsx-a11y/tabindex-no-positive" :1,
"@nitid/nitid/jsx-export-match-filename": 0,
"no-trailing-spaces": [2],
"no-shadow": "off",
"no-undef": [2],
"no-unused-vars": "off",
"no-useless-escape": 1,
"prefer-template": 1,
"quotes": 1,
"radix": 0,
"react/destructuring-assignment": 0,
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
"react/jsx-curly-spacing": 1,
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"react/jsx-tag-spacing": ["error", {
"beforeSelfClosing": "always"
}],
"react/forbid-prop-types": 1,
"react/jsx-boolean-value": 0,
"react/jsx-props-no-spreading": 0,
"react/no-unstable-nested-components": [1, { "allowAsProps": true }],
"react/self-closing-comp": 1,
"react/require-default-props": 0,
"react/prop-types": 0
}
}