mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-30 09:40:23 +00:00
57 lines
1.4 KiB
JSON
57 lines
1.4 KiB
JSON
{
|
|
"env": {
|
|
"es2020": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:promise/recommended",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:import/typescript",
|
|
"plugin:eslint-comments/recommended"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 2020,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"promise",
|
|
"import",
|
|
"eslint-comments"
|
|
],
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"rules": {
|
|
"react/prop-types": ["error"],
|
|
|
|
"block-spacing": ["error"],
|
|
"brace-style": ["error"],
|
|
"comma-dangle": ["error", "never"],
|
|
"comma-spacing": ["error"],
|
|
"eol-last": ["error"],
|
|
"indent": ["error", 2, { "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"]
|
|
}
|
|
} |