2019-11-13 05:48:02 +08:00
|
|
|
{
|
|
|
|
"env": { "node": true, "jest": true },
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": { "ecmaVersion": 2020, "sourceType": "module" },
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings",
|
|
|
|
"plugin:import/typescript",
|
2022-06-15 12:38:57 +08:00
|
|
|
"plugin:prettier/recommended",
|
|
|
|
"prettier/@typescript-eslint"
|
2019-11-13 05:48:02 +08:00
|
|
|
],
|
2020-03-18 21:35:13 +08:00
|
|
|
"plugins": ["@typescript-eslint", "simple-import-sort", "jest"],
|
|
|
|
"rules": {
|
|
|
|
"import/first": "error",
|
|
|
|
"import/newline-after-import": "error",
|
|
|
|
"import/no-duplicates": "error",
|
2022-06-15 12:38:57 +08:00
|
|
|
"simple-import-sort/sort": "error",
|
2020-03-18 21:35:13 +08:00
|
|
|
"sort-imports": "off"
|
|
|
|
}
|
2019-11-13 05:48:02 +08:00
|
|
|
}
|