2016-06-19 18:02:32 +08:00
|
|
|
{
|
2019-03-05 03:03:12 +08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2017-09-27 02:33:08 +08:00
|
|
|
"parserOptions": {
|
2019-09-24 02:24:11 +08:00
|
|
|
"project": "./app/tsconfig.json"
|
2017-09-27 02:33:08 +08:00
|
|
|
},
|
2016-06-19 18:02:32 +08:00
|
|
|
"globals": {
|
2017-09-27 02:36:58 +08:00
|
|
|
"AppEnv": false,
|
|
|
|
"$m": false,
|
2016-11-22 06:00:32 +08:00
|
|
|
"waitsForPromise": false,
|
|
|
|
"advanceClock": false,
|
|
|
|
"TEST_ACCOUNT_ID": false,
|
|
|
|
"TEST_ACCOUNT_NAME": false,
|
|
|
|
"TEST_ACCOUNT_EMAIL": false,
|
|
|
|
"TEST_ACCOUNT_ALIAS_EMAIL": false
|
2016-06-19 18:02:32 +08:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"jasmine": true
|
|
|
|
},
|
2021-01-20 00:28:44 +08:00
|
|
|
"plugins": ["react", "import", "jsx-a11y"],
|
2021-01-19 14:39:32 +08:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"prettier",
|
|
|
|
"prettier/@typescript-eslint"],
|
2016-06-19 18:02:32 +08:00
|
|
|
"rules": {
|
2018-01-27 02:57:22 +08:00
|
|
|
"no-cond-assign": 0,
|
2021-01-20 00:28:44 +08:00
|
|
|
"no-console": 0,
|
|
|
|
"no-constant-condition": "warn",
|
|
|
|
"no-async-promise-executor": "warn",
|
|
|
|
"import/first": 0,
|
|
|
|
"import/no-dynamic-require": 0,
|
|
|
|
"import/no-mutable-exports": 0,
|
|
|
|
"jsx-a11y/tabindex-no-positive": 0,
|
|
|
|
"jsx-a11y/label-has-for": 0,
|
2019-03-05 03:03:12 +08:00
|
|
|
"@typescript-eslint/explicit-member-accessibility": 0,
|
|
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
|
|
"@typescript-eslint/explicit-function-return-type": 0,
|
|
|
|
"@typescript-eslint/prefer-interface": 0,
|
|
|
|
"@typescript-eslint/no-unused-vars": 0,
|
|
|
|
"@typescript-eslint/camelcase": 0,
|
|
|
|
"@typescript-eslint/no-namespace": 0,
|
|
|
|
"@typescript-eslint/no-use-before-define": 0,
|
|
|
|
"@typescript-eslint/interface-name-prefix": 0,
|
|
|
|
"@typescript-eslint/no-var-requires": 0,
|
|
|
|
"@typescript-eslint/no-empty-interface": 0,
|
|
|
|
"@typescript-eslint/class-name-casing": 0,
|
|
|
|
"@typescript-eslint/prefer-namespace-keyword": 0,
|
|
|
|
"@typescript-eslint/no-object-literal-type-assertion": 0,
|
2021-01-19 14:39:32 +08:00
|
|
|
"@typescript-eslint/array-type": 0,
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
2021-01-20 00:28:44 +08:00
|
|
|
"@typescript-eslint/no-empty-function": 0,
|
|
|
|
"@typescript-eslint/ban-types": "warn"
|
2016-06-19 18:02:32 +08:00
|
|
|
},
|
|
|
|
"settings": {
|
2017-09-27 02:33:08 +08:00
|
|
|
"import/core-modules": [
|
2017-09-27 02:42:18 +08:00
|
|
|
"mailspring-exports",
|
|
|
|
"mailspring-component-kit",
|
2017-09-27 02:33:08 +08:00
|
|
|
"electron",
|
2017-09-27 02:42:18 +08:00
|
|
|
"mailspring-store",
|
|
|
|
"mailspring-observables"
|
2019-03-05 03:03:12 +08:00
|
|
|
]
|
2016-06-19 18:02:32 +08:00
|
|
|
}
|
|
|
|
}
|