Skip to content

Commit ab14c59

Browse files
author
Kashish Grover
committed
add .eslintrc
1 parent f7071c6 commit ab14c59

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed

.eslintrc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"airbnb"
5+
],
6+
"env": {
7+
"browser": true,
8+
"node": true
9+
},
10+
"settings": {
11+
"import/resolver": {
12+
"node": {
13+
"extensions": [".js", ".ios.js", ".android.js"]
14+
}
15+
}
16+
},
17+
"globals": {
18+
"__DEV__": false,
19+
"GLOBAL": false
20+
},
21+
"rules": {
22+
"arrow-parens": ["error", "always"],
23+
"function-paren-newline": ["error", "consistent"],
24+
"no-confusing-arrow": ["off"],
25+
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
26+
"no-underscore-dangle": ["off"],
27+
"object-curly-newline": ["error", { "consistent": true }],
28+
"prefer-promise-reject-errors": ["off"],
29+
"import/no-named-default": ["off"],
30+
"import/prefer-default-export": ["off"],
31+
"jsx-a11y/anchor-is-valid": ["off"],
32+
"jsx-a11y/click-events-have-key-events": ["off"],
33+
"jsx-a11y/label-has-for": [ "error", { "required": { "every": ["id"] }, "allowChildren": true } ],
34+
"jsx-a11y/no-noninteractive-element-interactions": ["off"],
35+
"jsx-a11y/no-static-element-interactions": ["off"],
36+
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
37+
"no-use-before-define": ["error", { "variables": false }],
38+
"react/prop-types": 0,
39+
"no-alert": 0,
40+
"no-console": 0
41+
}
42+
}

App.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import React from 'react';
2-
import { StyleSheet, Text, View } from 'react-native';
2+
import {
3+
StyleSheet,
4+
Text,
5+
View,
6+
} from 'react-native';
37

48
export default class App extends React.Component {
9+
state={};
10+
511
render() {
612
return (
713
<View style={styles.container}>
@@ -15,7 +21,5 @@ const styles = StyleSheet.create({
1521
container: {
1622
flex: 1,
1723
backgroundColor: '#fff',
18-
alignItems: 'center',
19-
justifyContent: 'center',
2024
},
2125
});

0 commit comments

Comments
 (0)