Skip to content

Commit 9506d13

Browse files
committed
Purge linter configuration
1 parent 7f724d3 commit 9506d13

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

.eslintrc

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@
2222
"plugin:react-native/all",
2323
"plugin:prettier/recommended"
2424
],
25+
"settings": {
26+
"react": {
27+
"version": "detect",
28+
},
29+
},
2530
"rules": {
26-
"prettier/prettier": "error",
27-
"comma-dangle" : ["error", "always-multiline"],
28-
"space-before-function-paren": ["error", {
29-
"anonymous": "never",
30-
"named": "never",
31-
"asyncArrow": "always"
32-
}],
33-
"no-fallthrough": ["error", { "commentPattern": "break[\\s\\w]*omitted" }],
34-
"react/jsx-uses-vars": 2,
35-
"react/jsx-indent-props": [2, 2],
36-
"react/prop-types": [2,{ "skipUndeclared": true}],
37-
"react/display-name": [0, { "ignoreTranspilerName": false }]
31+
"react-native/no-raw-text": 0 // Avoid false positive, wait for fix
3832
}
3933
}

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
jsxBracketSameLine : false,
1010
arrowParens : "always",
1111
rangeStart : 0,
12-
parser : "babylon",
12+
parser : "babel",
1313
requirePragma : false,
1414
insertPragma : false,
1515
proseWrap : "preserve"

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
presets: ['module:metro-react-native-babel-preset'],
3-
};
3+
}

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @format
33
*/
44

5-
import {AppRegistry} from 'react-native';
6-
import App from './App/App';
7-
import {name as appName} from './app.json';
5+
import { AppRegistry } from 'react-native'
6+
import App from './App/App'
7+
import { name as appName } from './app.json'
88

9-
AppRegistry.registerComponent(appName, () => App);
9+
AppRegistry.registerComponent(appName, () => App)

metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ module.exports = {
1414
},
1515
}),
1616
},
17-
};
17+
}

0 commit comments

Comments
 (0)