From 500f2f74bcb896c6ccba6b2727f6c201c400b755 Mon Sep 17 00:00:00 2001 From: davikstone Date: Tue, 23 Jan 2024 15:06:55 +0100 Subject: [PATCH] update eslint --- web/saito/lib/glide/.eslintrc.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/web/saito/lib/glide/.eslintrc.js b/web/saito/lib/glide/.eslintrc.js index ad50822d18..1dedb3f120 100644 --- a/web/saito/lib/glide/.eslintrc.js +++ b/web/saito/lib/glide/.eslintrc.js @@ -6,29 +6,20 @@ module.exports = { jquery: true, }, extends: [ + // 'airbnb-base', "eslint:recommended", "plugin:@typescript-eslint/recommended", - "plugin:import/errors", - "plugin:import/warnings", - "plugin:import/typescript", - "plugin:node/recommended", - "plugin:promise/recommended", "prettier", - "prettier/@typescript-eslint", ], parser: "@typescript-eslint/parser", parserOptions: { - ecmaVersion: 2021, + ecmaVersion: 13, sourceType: "module", }, - plugins: ["@typescript-eslint", "import", "node", "promise", "prettier"], + plugins: ["@typescript-eslint"], rules: { - "prefer-const": "warn", + "prefer-const": 0, "@typescript-eslint/no-var-requires": "off", - "no-unused-vars": "warn", - "consistent-return": "error", - semi: ["error", "always"], - "prettier/prettier": "error", indent: ["warn", 2], "space-infix-ops": "warn", "space-before-blocks": "warn", @@ -37,6 +28,5 @@ module.exports = { "space-before-function-paren": ["warn", "always"], "array-bracket-spacing": ["warn", "never"], "keyword-spacing": ["warn", { before: true, after: true }], - // ... more customized rules ... }, };