diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..f4150709 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,58 @@ +module.exports = { + env: { + es6: true, + jasmine: true, + node: true, + worker: true, + }, + parser: "@typescript-eslint/parser", + parserOptions: { + ecmaVersion: 2018, + project: "./tsconfig.json", + tsconfigRootDir: __dirname, + }, + plugins: ["@typescript-eslint", "prettier", "simple-import-sort", "import"], + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "prettier/@typescript-eslint", + "plugin:prettier/recommended", + "plugin:import/typescript", + ], + rules: { + curly: ["warn", "multi-line", "consistent"], + "no-console": ["warn", { allow: ["error", "info", "warn"] }], + "no-param-reassign": "warn", + "no-shadow": "warn", + "prefer-const": "warn", + "spaced-comment": ["warn", "always", { line: { markers: ["/