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