2016-02-27 13:53:11 -08:00
|
|
|
{
|
2021-11-29 06:40:55 -08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
|
|
|
"extraFileExtensions": [".json"],
|
2023-06-28 20:18:18 -04:00
|
|
|
"project": "./tsconfig.json",
|
2021-11-29 06:40:55 -08:00
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
2017-05-03 22:49:08 -07:00
|
|
|
"extends": [
|
2021-11-29 06:40:55 -08:00
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:import/recommended",
|
|
|
|
"plugin:import/typescript",
|
|
|
|
"plugin:prettier/recommended"
|
2017-05-03 22:49:08 -07:00
|
|
|
],
|
2020-06-20 13:59:15 -07:00
|
|
|
"plugins": [
|
2022-04-08 10:16:55 -07:00
|
|
|
"es",
|
2021-11-29 06:40:55 -08:00
|
|
|
"@typescript-eslint",
|
|
|
|
"eslint-plugin-import",
|
|
|
|
"eslint-plugin-node",
|
|
|
|
"eslint-plugin-react",
|
2023-08-14 14:44:58 -04:00
|
|
|
"eslint-plugin-lodash"
|
2020-06-20 13:59:15 -07:00
|
|
|
],
|
2016-02-27 13:53:11 -08:00
|
|
|
"rules": {
|
2017-07-01 17:19:45 -07:00
|
|
|
"eqeqeq": 2,
|
2022-02-05 10:15:40 -08:00
|
|
|
"curly": 2,
|
2023-04-11 22:15:52 -04:00
|
|
|
"no-console": "error",
|
2023-04-08 08:25:20 -04:00
|
|
|
"arrow-body-style": ["error", "as-needed"],
|
|
|
|
"spaced-comment": "error",
|
2022-08-11 13:18:14 +01:00
|
|
|
"object-shorthand": "error",
|
2017-04-27 21:48:13 -07:00
|
|
|
"no-mixed-operators": "off",
|
2022-01-19 18:43:15 -08:00
|
|
|
"no-useless-escape": "off",
|
2024-03-09 14:04:27 -07:00
|
|
|
"no-shadow": "off",
|
2022-04-08 10:16:55 -07:00
|
|
|
"es/no-regexp-lookbehind-assertions": "error",
|
2023-04-08 08:25:20 -04:00
|
|
|
"react/self-closing-comp": ["error", {
|
|
|
|
"component": true,
|
|
|
|
"html": true
|
|
|
|
}],
|
2024-03-09 14:04:27 -07:00
|
|
|
"@typescript-eslint/no-shadow": [
|
|
|
|
"warn",
|
|
|
|
{
|
2024-07-02 06:55:16 -04:00
|
|
|
"allow": ["transaction"],
|
2024-03-09 14:04:27 -07:00
|
|
|
"hoist": "all",
|
|
|
|
"ignoreTypeValueShadow": true
|
|
|
|
}
|
|
|
|
],
|
2024-01-23 09:07:52 -05:00
|
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
2023-06-28 20:18:18 -04:00
|
|
|
"@typescript-eslint/no-floating-promises": "error",
|
|
|
|
"@typescript-eslint/await-thenable": "error",
|
|
|
|
"@typescript-eslint/no-misused-promises": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"checksVoidReturn": false
|
|
|
|
}
|
|
|
|
],
|
2021-12-11 12:48:13 -08:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
"args": "after-used",
|
|
|
|
"ignoreRestSiblings": true
|
|
|
|
}
|
|
|
|
],
|
2021-11-29 06:40:55 -08:00
|
|
|
"padding-line-between-statements": ["error", { "blankLine": "always", "prev": "*", "next": "export" }],
|
|
|
|
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
2023-08-14 14:44:58 -04:00
|
|
|
"lodash/import-scope": ["warn", "method"],
|
2021-12-11 12:48:13 -08:00
|
|
|
"import/no-named-as-default": "off",
|
|
|
|
"import/no-named-as-default-member": "off",
|
2021-11-29 06:40:55 -08:00
|
|
|
"import/newline-after-import": 2,
|
2020-08-08 22:53:59 -07:00
|
|
|
"import/order": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"alphabetize": {
|
|
|
|
"order": "asc"
|
|
|
|
},
|
|
|
|
"pathGroups": [
|
|
|
|
{
|
2021-11-29 06:40:55 -08:00
|
|
|
"pattern": "@shared/**",
|
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pattern": "@server/**",
|
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pattern": "~/stores",
|
2020-08-08 22:53:59 -07:00
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
2021-11-29 06:40:55 -08:00
|
|
|
"pattern": "~/stores/**",
|
2020-08-08 22:53:59 -07:00
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
2021-11-29 06:40:55 -08:00
|
|
|
"pattern": "~/models/**",
|
2020-08-08 22:53:59 -07:00
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
2021-11-29 06:40:55 -08:00
|
|
|
"pattern": "~/scenes/**",
|
2020-08-08 22:53:59 -07:00
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
2021-11-29 06:40:55 -08:00
|
|
|
"pattern": "~/components/**",
|
2020-08-08 22:53:59 -07:00
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
2021-11-29 06:40:55 -08:00
|
|
|
"pattern": "~/**",
|
2020-08-08 22:53:59 -07:00
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2017-05-03 22:49:08 -07:00
|
|
|
"prettier/prettier": [
|
|
|
|
"error",
|
|
|
|
{
|
2017-11-15 22:56:40 -08:00
|
|
|
"printWidth": 80,
|
2020-06-20 13:59:15 -07:00
|
|
|
"trailingComma": "es5"
|
2016-06-30 23:21:58 -07:00
|
|
|
}
|
2017-05-03 22:49:08 -07:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"settings": {
|
2019-01-21 11:06:44 -08:00
|
|
|
"react": {
|
|
|
|
"createClass": "createReactClass",
|
|
|
|
"pragma": "React",
|
2020-08-08 22:53:59 -07:00
|
|
|
"version": "detect"
|
2019-01-21 11:06:44 -08:00
|
|
|
},
|
2021-11-29 06:40:55 -08:00
|
|
|
"import/parsers": {
|
|
|
|
"@typescript-eslint/parser": [".ts", ".tsx"]
|
2018-01-03 21:35:13 -08:00
|
|
|
},
|
2021-11-29 06:40:55 -08:00
|
|
|
"import/resolver": {
|
|
|
|
"typescript": {}
|
2017-05-11 17:23:56 -07:00
|
|
|
}
|
2017-05-03 22:49:08 -07:00
|
|
|
}
|
2024-07-02 06:55:16 -04:00
|
|
|
}
|