123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- module.exports = {
- root: true,
- parser: "@typescript-eslint/parser",
- extends: [
- "plugin:@typescript-eslint/recommended",
- "prettier/@typescript-eslint",
- "plugin:prettier/recommended",
- "plugin:import/errors",
- "plugin:import/warnings",
- "plugin:import/typescript",
- ],
- settings: {
- "import/parsers": {
- "@typescript-eslint/parser": [".ts", ".d.ts"],
- },
- },
- parserOptions: {
- ecmaVersion: 2018,
- sourceType: "module",
- },
- rules: {
- "prettier/prettier": [1, { trailingComma: "all", endOfLine: "auto" }],
- "@typescript-eslint/no-unused-vars": [1, { argsIgnorePattern: "^_" }],
- "@typescript-eslint/no-unused-vars": [1, { argsIgnorePattern: "^_" }],
- "@typescript-eslint/naming-convention": [
- "error",
- {
- selector: "interface",
- format: ["PascalCase"],
- prefix: ["I"],
- },
- {
- selector: "variableLike",
- format: ["strictCamelCase", "UPPER_CASE"],
- leadingUnderscore: "allow",
- },
- ],
- "@typescript-eslint/explicit-function-return-type": [
- 1,
- {
- allowExpressions: true,
- allowTypedFunctionExpressions: true,
- },
- ],
- "import/order": [
- 1,
- {
- groups: [
- "builtin",
- "external",
- "internal",
- "parent",
- "sibling",
- "index",
- ],
- "newlines-between": "always",
- },
- ],
- },
- };
|