{ "root": true, // parse TypeScript files // https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser "parser": "@typescript-eslint/parser", // configure eslint using options described at // https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin "plugins": ["@typescript-eslint"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "prettier" ], "ignorePatterns": ["dist", "node_modules"], "rules": { "no-var": "error", "prefer-const": "warn", "no-misleading-character-class": "warn", "eqeqeq": ["error", "always", { "null": "ignore" }], "@typescript-eslint/no-unused-vars": [ "warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" } ], "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-explicit-any": "off" }, "overrides": [ { "files": ["jest.config.js"], "env": { "commonjs": true } }, { "files": ["jest.setup.js"], "env": { "jest": true } }, { "files": "*.js", "rules": { "@typescript-eslint/no-var-requires": "off" } } ] }