jellyfin-expo/.eslintrc.json
2020-04-08 13:58:04 -04:00

51 lines
1.3 KiB
JSON

{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:promise/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"promise"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/prop-types": ["error", { "ignore": ["navigation"] }],
"block-spacing": ["error"],
"brace-style": ["error"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error"],
"eol-last": ["error"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"keyword-spacing": ["error"],
"max-statements-per-line": ["error"],
"no-floating-decimal": ["error"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-trailing-spaces": ["error"],
"one-var": ["error", "never"],
"semi": ["error"],
"space-before-blocks": ["error"]
}
}