codedungeon
9/6/2018 - 3:27 AM

ESLint w/ TypeScript

ESLint Configuration w/ TypeScript

{
  "extends": "eslint:recommended",
  "parser": "typescript-eslint-parser",
  "plugins": ["typescript"],
  "overrides": [
    {
      "files": ["*-test.js", "*.spec.js"],
      "rules": {
        "no-unused-expressions": "off"
      }
    }
  ],
  "rules": {
    "no-console": 0,
    "semi": 2,
    "import/no-extraneous-dependencies": 0,
    "class-methods-use-this": 0,
    "no-unused-vars": 0,
    "no-undef": 0,
    "comma-dangle": 0,
    "strict": 0,
    "import/no-unresolved": 0,
    "no-useless-constructor": 0,
    "no-empty-function": 0,
    "no-unused-expressions": 0,
    "quotes": ["error", "double"]
  }
}