2019-08-19 06:47:46 +00:00
|
|
|
{
|
|
|
|
"env": {
|
2021-02-23 06:14:05 +00:00
|
|
|
"react-native/react-native": true
|
2019-08-19 06:47:46 +00:00
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2020-04-08 17:31:29 +00:00
|
|
|
"plugin:react/recommended",
|
2020-04-08 18:01:15 +00:00
|
|
|
"plugin:promise/recommended",
|
|
|
|
"plugin:import/errors",
|
2020-04-08 18:09:58 +00:00
|
|
|
"plugin:import/warnings",
|
2020-07-15 21:36:20 +00:00
|
|
|
"plugin:import/typescript",
|
2020-04-08 18:09:58 +00:00
|
|
|
"plugin:eslint-comments/recommended"
|
2019-08-19 06:47:46 +00:00
|
|
|
],
|
2020-12-08 05:52:24 +00:00
|
|
|
"parser": "@babel/eslint-parser",
|
2019-08-19 06:47:46 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
2020-04-08 18:14:36 +00:00
|
|
|
"ecmaVersion": 2020,
|
2019-08-19 06:47:46 +00:00
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
2020-04-08 17:31:29 +00:00
|
|
|
"react",
|
2021-02-23 06:14:05 +00:00
|
|
|
"react-native",
|
2020-04-08 18:01:15 +00:00
|
|
|
"promise",
|
2020-04-08 18:09:58 +00:00
|
|
|
"import",
|
|
|
|
"eslint-comments"
|
2019-08-19 06:47:46 +00:00
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
2021-03-01 22:47:54 +00:00
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"version": "detect"
|
2019-08-19 06:47:46 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"rules": {
|
2020-04-21 17:22:48 +00:00
|
|
|
"react/prop-types": ["error"],
|
2021-02-23 05:47:03 +00:00
|
|
|
"jsx-quotes": ["error", "prefer-single"],
|
2020-04-08 16:45:58 +00:00
|
|
|
|
2021-02-23 06:14:05 +00:00
|
|
|
"react-native/no-unused-styles": ["error"],
|
|
|
|
"react-native/split-platform-components": ["error"],
|
|
|
|
"react-native/no-color-literals": ["error"],
|
|
|
|
"react-native/no-raw-text": ["error"],
|
|
|
|
|
2021-10-07 05:03:28 +00:00
|
|
|
"import/order": ["error", {
|
2021-03-22 19:33:36 +00:00
|
|
|
"alphabetize": { "order": "asc", "caseInsensitive": true },
|
|
|
|
"newlines-between": "always-and-inside-groups"
|
|
|
|
}],
|
|
|
|
|
2021-02-20 07:31:46 +00:00
|
|
|
"array-bracket-spacing": ["error", "always", { "objectsInArrays": false, "arraysInArrays": false }],
|
2021-02-16 19:32:10 +00:00
|
|
|
"array-callback-return": ["error"],
|
2021-02-20 07:31:46 +00:00
|
|
|
"arrow-spacing": ["error"],
|
2020-04-08 16:45:58 +00:00
|
|
|
"block-spacing": ["error"],
|
2021-02-16 19:32:10 +00:00
|
|
|
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
2020-04-08 16:45:58 +00:00
|
|
|
"comma-dangle": ["error", "never"],
|
|
|
|
"comma-spacing": ["error"],
|
2021-10-07 04:55:46 +00:00
|
|
|
"curly": ["error", "multi-line"],
|
2022-03-18 14:54:25 +00:00
|
|
|
"default-case-last": ["error"],
|
2021-10-07 04:55:46 +00:00
|
|
|
"dot-location": ["error", "property"],
|
2020-04-08 16:45:58 +00:00
|
|
|
"eol-last": ["error"],
|
2020-07-22 03:30:50 +00:00
|
|
|
"indent": ["error", "tab", { "SwitchCase": 1 }],
|
2021-10-07 04:55:46 +00:00
|
|
|
"key-spacing": ["error"],
|
2020-04-08 16:45:58 +00:00
|
|
|
"keyword-spacing": ["error"],
|
2022-03-18 14:54:25 +00:00
|
|
|
"max-params": ["error", { "max": 7 }],
|
2020-04-08 16:45:58 +00:00
|
|
|
"max-statements-per-line": ["error"],
|
2021-02-20 07:31:46 +00:00
|
|
|
"no-duplicate-imports": ["error"],
|
2021-11-22 14:56:33 +00:00
|
|
|
"no-empty-function": ["error"],
|
2020-04-08 16:45:58 +00:00
|
|
|
"no-floating-decimal": ["error"],
|
|
|
|
"no-multi-spaces": ["error"],
|
|
|
|
"no-multiple-empty-lines": ["error", { "max": 1 }],
|
2022-03-18 14:54:25 +00:00
|
|
|
"no-nested-ternary": ["error"],
|
|
|
|
"no-redeclare": ["error"],
|
2021-02-22 14:34:43 +00:00
|
|
|
"no-return-await": ["error"],
|
2022-03-18 14:54:25 +00:00
|
|
|
"no-sequences": ["error"],
|
|
|
|
"no-shadow": ["error"],
|
|
|
|
"no-throw-literal": ["error"],
|
2020-04-08 16:45:58 +00:00
|
|
|
"no-trailing-spaces": ["error"],
|
2021-10-07 04:55:46 +00:00
|
|
|
"no-unreachable": ["error"],
|
|
|
|
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }],
|
2022-03-18 14:54:25 +00:00
|
|
|
"no-unused-vars": ["error"],
|
2021-02-16 19:32:10 +00:00
|
|
|
"no-var": ["error"],
|
2022-03-18 14:54:25 +00:00
|
|
|
"no-void": ["error"],
|
2021-02-20 07:31:46 +00:00
|
|
|
"object-curly-spacing": ["error", "always"],
|
2020-04-08 16:45:58 +00:00
|
|
|
"one-var": ["error", "never"],
|
2021-02-16 19:32:10 +00:00
|
|
|
"padded-blocks": ["error", "never"],
|
|
|
|
"prefer-const": ["error", { "destructuring": "all" }],
|
2021-02-20 07:31:46 +00:00
|
|
|
"quote-props": ["error", "as-needed"],
|
2020-07-22 03:28:59 +00:00
|
|
|
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
|
2021-02-20 07:31:46 +00:00
|
|
|
"radix": ["error"],
|
2020-04-08 16:45:58 +00:00
|
|
|
"semi": ["error"],
|
2020-07-22 03:28:59 +00:00
|
|
|
"space-before-blocks": ["error"],
|
2021-10-07 04:55:46 +00:00
|
|
|
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
|
2021-02-20 07:31:46 +00:00
|
|
|
"space-in-parens": ["error"],
|
2021-02-16 19:32:10 +00:00
|
|
|
"space-infix-ops": ["error"],
|
|
|
|
"yoda": ["error"]
|
2020-12-28 21:28:29 +00:00
|
|
|
},
|
2021-02-22 18:11:12 +00:00
|
|
|
"ignorePatterns": [ "coverage" ],
|
2020-12-28 21:28:29 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
2021-10-20 03:57:52 +00:00
|
|
|
"files": [ "./**/*.js" ],
|
|
|
|
"globals": {
|
|
|
|
"AbortController": "readonly",
|
|
|
|
"URL": "readonly",
|
|
|
|
"URLSearchParams": "readonly"
|
|
|
|
}
|
2020-12-28 21:28:29 +00:00
|
|
|
},
|
2021-02-22 18:11:12 +00:00
|
|
|
{
|
2021-11-16 16:23:37 +00:00
|
|
|
"files": [ "jest.setup.js", "./**/*.test.js" ],
|
2021-02-22 18:11:12 +00:00
|
|
|
"plugins": [ "jest" ],
|
|
|
|
"env": {
|
|
|
|
"jest/globals": true
|
|
|
|
},
|
2021-02-23 05:32:47 +00:00
|
|
|
"globals": {
|
|
|
|
"fetch": "readonly"
|
|
|
|
},
|
2021-02-22 18:11:12 +00:00
|
|
|
"extends": [
|
|
|
|
"plugin:jest/recommended",
|
|
|
|
"plugin:jest/style"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"jest/consistent-test-it": ["error"],
|
|
|
|
"jest/lowercase-name": ["error", { "ignoreTopLevelDescribe": true }],
|
|
|
|
"jest/require-top-level-describe": ["error"]
|
|
|
|
}
|
|
|
|
},
|
2020-12-28 21:28:29 +00:00
|
|
|
{
|
|
|
|
"files": [ "./assets/**/*.staticjs" ],
|
2021-02-20 06:42:38 +00:00
|
|
|
"extends": [
|
|
|
|
"plugin:compat/recommended"
|
|
|
|
],
|
2021-02-02 21:51:52 +00:00
|
|
|
"globals": {
|
|
|
|
"postExpoEvent": "readonly"
|
|
|
|
},
|
2020-12-28 21:28:29 +00:00
|
|
|
"env": {
|
2021-02-23 06:14:05 +00:00
|
|
|
"react-native/react-native": false,
|
|
|
|
"browser": true,
|
|
|
|
"es6": true
|
2020-12-28 21:28:29 +00:00
|
|
|
}
|
2022-03-23 17:54:47 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"./**/*.ts",
|
|
|
|
"./**/*.tsx"
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": [ "@typescript-eslint" ],
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:promise/recommended",
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings",
|
|
|
|
"plugin:import/typescript",
|
|
|
|
"plugin:eslint-comments/recommended"
|
|
|
|
]
|
2020-12-28 21:28:29 +00:00
|
|
|
}
|
|
|
|
]
|
2020-12-08 05:52:24 +00:00
|
|
|
}
|