35 lines
1006 B
JavaScript
35 lines
1006 B
JavaScript
module.exports = {
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: "tsconfig.json",
|
|
},
|
|
ignorePatterns: ["build/*", "coverage/*"],
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {},
|
|
},
|
|
},
|
|
extends: ["react-app", "plugin:import/errors", "plugin:import/warnings", "plugin:prettier/recommended", "prettier"],
|
|
rules: {
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
groups: ["builtin", "external", "internal"],
|
|
pathGroups: [
|
|
{
|
|
pattern: "react",
|
|
group: "external",
|
|
position: "before",
|
|
},
|
|
],
|
|
pathGroupsExcludedImportTypes: ["react"],
|
|
"newlines-between": "always",
|
|
alphabetize: {
|
|
order: "asc",
|
|
caseInsensitive: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|