Skip to content

Instantly share code, notes, and snippets.

@vschoener
Last active August 10, 2020 13:05
Show Gist options
  • Save vschoener/1f01f7ad94cf72ea116ecc9de4c0da86 to your computer and use it in GitHub Desktop.
Save vschoener/1f01f7ad94cf72ea116ecc9de4c0da86 to your computer and use it in GitHub Desktop.

Revisions

  1. vschoener revised this gist Aug 10, 2020. 1 changed file with 1 addition and 6 deletions.
    7 changes: 1 addition & 6 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -37,12 +37,7 @@
    "@typescript-eslint/object-literal-sort-keys": ["off"],
    "import/no-unresolved": "error",
    "import/named": 2,
    "import/namespace": [
    "error",
    {
    "allowComputed": true
    }
    ],
    "import/namespace": 2,
    "import/order": [
    "error",
    {
  2. vschoener created this gist Aug 10, 2020.
    57 changes: 57 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    {
    "root": true,
    "env": {
    "node": true
    },
    "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"]
    },
    "import/resolver": {
    "typescript": {}
    }
    },
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
    "project": "./tsconfig.json",
    "tsconfigRootDir": "./"
    },
    "plugins": ["@typescript-eslint", "import"],
    "rules": {
    "prettier/prettier": ["error"],
    "@typescript-eslint/no-explicit-any": 2,
    "@typescript-eslint/no-unused-vars": 2,
    "@typescript-eslint/explicit-function-return-type": "off",
    "@typescript-eslint/explicit-member-accessibility": ["error"],
    "@typescript-eslint/member-ordering": ["error"],
    "@typescript-eslint/interface-name": ["off"],
    "@typescript-eslint/arrow-parens": ["off"],
    "@typescript-eslint/object-literal-sort-keys": ["off"],
    "import/no-unresolved": "error",
    "import/named": 2,
    "import/namespace": [
    "error",
    {
    "allowComputed": true
    }
    ],
    "import/order": [
    "error",
    {
    "newlines-between": "always",
    "groups": [
    ["builtin", "external"],
    ["internal", "parent", "sibling", "index"]
    ]
    }
    ]
    }
    }