mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 09:08:15 +00:00
Refactor .eslintrc to be more readable. (#2595)
- Replace 0, 1 and 2 with "off", "warn" and "error" because strings seem more readable than numbers.
This commit is contained in:
parent
98cb493449
commit
365eec8efa
48
.eslintrc
48
.eslintrc
@ -26,46 +26,46 @@
|
|||||||
"singleQuote": true
|
"singleQuote": true
|
||||||
}],
|
}],
|
||||||
|
|
||||||
"no-underscore-dangle": 0,
|
"no-underscore-dangle": "off",
|
||||||
"no-use-before-define": 0,
|
"no-use-before-define": "off",
|
||||||
"no-unused-expressions": 0,
|
"no-unused-expressions": "off",
|
||||||
"new-cap": 0,
|
"new-cap": "off",
|
||||||
"no-plusplus": 0,
|
"no-plusplus": "off",
|
||||||
"no-class-assign": 0,
|
"no-class-assign": "off",
|
||||||
"no-duplicate-imports": 0,
|
"no-duplicate-imports": "off",
|
||||||
|
|
||||||
"import/extensions": 0,
|
"import/extensions": "off",
|
||||||
"import/no-extraneous-dependencies": 0,
|
"import/no-extraneous-dependencies": "off",
|
||||||
"import/no-unresolved": 0,
|
"import/no-unresolved": "off",
|
||||||
|
|
||||||
"react/jsx-filename-extension": [
|
"react/jsx-filename-extension": [
|
||||||
0, { "extensions": [".js", ".jsx"] }
|
"off", { "extensions": [".js", ".jsx"] }
|
||||||
],
|
],
|
||||||
|
|
||||||
"react/sort-comp": 0,
|
"react/sort-comp": "off",
|
||||||
"react/prefer-stateless-function": 0,
|
"react/prefer-stateless-function": "off",
|
||||||
|
|
||||||
"react/forbid-prop-types": 1,
|
"react/forbid-prop-types": "warn",
|
||||||
"react/prop-types": 0,
|
"react/prop-types": "off",
|
||||||
"react/require-default-props": 0,
|
"react/require-default-props": "off",
|
||||||
"react/no-unused-prop-types": 0,
|
"react/no-unused-prop-types": "off",
|
||||||
|
|
||||||
"flowtype/boolean-style": [
|
"flowtype/boolean-style": [
|
||||||
2,
|
"error",
|
||||||
"boolean"
|
"boolean"
|
||||||
],
|
],
|
||||||
"flowtype/no-weak-types": 0,
|
"flowtype/no-weak-types": "off",
|
||||||
"flowtype/require-parameter-type": 2,
|
"flowtype/require-parameter-type": "error",
|
||||||
"flowtype/require-return-type": [
|
"flowtype/require-return-type": [
|
||||||
0,
|
"off",
|
||||||
"always",
|
"always",
|
||||||
{
|
{
|
||||||
"annotateUndefined": "never"
|
"annotateUndefined": "never"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"flowtype/require-valid-file-annotation": 2,
|
"flowtype/require-valid-file-annotation": "error",
|
||||||
"flowtype/use-flow-type": 1,
|
"flowtype/use-flow-type": "warn",
|
||||||
"flowtype/valid-syntax": 1
|
"flowtype/valid-syntax": "warn"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"flowtype": {
|
"flowtype": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user