2021-01-02 17:58:24 +07:00
|
|
|
module.exports = {
|
2021-06-08 07:14:51 +07:00
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
parserOptions: {
|
|
|
|
project: "tsconfig.json",
|
2021-01-02 17:58:24 +07:00
|
|
|
},
|
2021-09-09 09:22:11 +07:00
|
|
|
ignorePatterns: ["build/*", "coverage/*", "!.*.js"],
|
2021-06-08 07:14:51 +07:00
|
|
|
settings: {
|
2021-01-02 17:58:24 +07:00
|
|
|
"import/resolver": {
|
2021-06-08 07:14:51 +07:00
|
|
|
typescript: {},
|
|
|
|
},
|
2021-01-02 17:58:24 +07:00
|
|
|
},
|
2021-06-08 07:14:51 +07:00
|
|
|
extends: ["react-app", "plugin:import/errors", "plugin:import/warnings", "plugin:prettier/recommended", "prettier"],
|
|
|
|
rules: {
|
2021-01-02 17:58:24 +07:00
|
|
|
"import/order": [
|
|
|
|
"error",
|
|
|
|
{
|
2021-06-08 07:14:51 +07:00
|
|
|
groups: ["builtin", "external", "internal"],
|
|
|
|
pathGroups: [
|
2021-01-02 17:58:24 +07:00
|
|
|
{
|
2021-06-08 07:14:51 +07:00
|
|
|
pattern: "react",
|
|
|
|
group: "external",
|
|
|
|
position: "before",
|
|
|
|
},
|
2021-01-02 17:58:24 +07:00
|
|
|
],
|
2021-06-08 07:14:51 +07:00
|
|
|
pathGroupsExcludedImportTypes: ["react"],
|
2021-01-02 17:58:24 +07:00
|
|
|
"newlines-between": "always",
|
2021-06-08 07:14:51 +07:00
|
|
|
alphabetize: {
|
|
|
|
order: "asc",
|
|
|
|
caseInsensitive: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|