2018-03-17 18:36:42 +01:00
|
|
|
{
|
2018-03-17 19:43:34 +01:00
|
|
|
"parser": "babel-eslint",
|
|
|
|
"plugins": [
|
2020-06-01 14:54:23 +02:00
|
|
|
"react-native", // for no-inline-styles rule
|
|
|
|
],
|
|
|
|
"extends": [
|
|
|
|
"standard",
|
|
|
|
"standard-react",
|
2021-05-08 08:41:45 +02:00
|
|
|
"standard-jsx",
|
2020-06-01 14:54:23 +02:00
|
|
|
"plugin:react-hooks/recommended",
|
2021-05-08 08:41:45 +02:00
|
|
|
"plugin:react/recommended",
|
|
|
|
// "@react-native-community", // TODO: try to enable
|
|
|
|
"plugin:prettier/recommended", // removes all eslint rules that can mess up with prettier
|
2018-03-17 19:43:34 +01:00
|
|
|
],
|
2018-03-17 21:39:21 +01:00
|
|
|
"rules": {
|
2020-06-01 14:54:23 +02:00
|
|
|
"react/jsx-handler-names": "off", // activated by standard-react config
|
2021-05-08 08:41:45 +02:00
|
|
|
"react/display-name": "off",
|
2020-06-01 14:54:23 +02:00
|
|
|
"react-native/no-inline-styles": "error",
|
|
|
|
"prettier/prettier": [
|
|
|
|
"warn",
|
2018-03-17 21:39:21 +01:00
|
|
|
{
|
2020-06-01 14:54:23 +02:00
|
|
|
"singleQuote": true,
|
|
|
|
"printWidth": 140,
|
|
|
|
"trailingComma": "all",
|
|
|
|
"arrowParens": "avoid"
|
2018-03-20 01:49:32 +01:00
|
|
|
}
|
2018-03-17 21:39:21 +01:00
|
|
|
]
|
2018-10-20 23:10:21 +02:00
|
|
|
},
|
|
|
|
"env":{
|
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"globals": { "fetch": false }
|
2018-03-17 18:36:42 +01:00
|
|
|
}
|