react-native-appmetrica/.eslintrc.json

74 lines
1.8 KiB
JSON
Raw Normal View History

2017-09-18 10:07:46 +03:00
{
"extends": [
2017-09-30 15:41:58 +03:00
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:react/recommended"
2017-09-18 10:07:46 +03:00
],
"rules": {
"array-bracket-spacing": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error", "always"],
"indent": [
"error",
4,
{"SwitchCase": 1}
],
"linebreak-style": [
"error",
"unix"
],
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-multiple-empty-lines": ["error", {"max": 1, "maxBOF": 0 }],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single"],
"semi": ["error", "always" ],
2017-09-30 15:41:58 +03:00
"space-infix-ops": "error",
"react/jsx-key": "error",
"react/jsx-no-bind": ["error", {
"ignoreRefs": true
}],
"react/no-unused-prop-types": "error",
"react/prefer-es6-class": "error",
"react/prop-types": [
"error", {
"ignore": [
"children",
"dispatch"
]
}
],
"react-native/no-inline-styles": "error",
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "warn"
2017-09-18 10:07:46 +03:00
},
"env": {
"es6": true,
"node": true
},
2017-09-30 15:41:58 +03:00
"parser": "babel-eslint",
2017-09-18 10:07:46 +03:00
"parserOptions": {
2017-09-30 15:41:58 +03:00
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
},
2017-09-18 10:07:46 +03:00
"sourceType": "module"
2017-09-30 15:41:58 +03:00
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
},
"react": {
"pragma": "React",
"version": "16.0.0"
}
},
"plugins": [
"flowtype",
"react",
"react-native"
]
2017-09-18 10:07:46 +03:00
}