From a8e9df782a0a80614c6138270d9ab0b4d6266488 Mon Sep 17 00:00:00 2001 From: davikstone Date: Tue, 23 Jan 2024 14:42:11 +0100 Subject: [PATCH] update eslint --- .github/workflows/linting.yml | 4 ++-- web/saito/lib/glide/.eslintrc | 10 ---------- web/saito/lib/glide/.eslintrc.js | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 web/saito/lib/glide/.eslintrc create mode 100644 web/saito/lib/glide/.eslintrc.js diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 086fb3ba61..8c4089dc05 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -2,9 +2,9 @@ name: Lint on: push: - branches: [ "staging","master" ] + branches: [ "staging","master", "feature/add-eslint" ] pull_request: - branches: [ staging ,"master"] + branches: [ staging ,"master", "feature/add-eslint"] jobs: lint: diff --git a/web/saito/lib/glide/.eslintrc b/web/saito/lib/glide/.eslintrc deleted file mode 100644 index ee3cf42ff7..0000000000 --- a/web/saito/lib/glide/.eslintrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "standard", - "parserOptions": { - "ecmaVersion": 6, - "sourceType": "module" - }, - "env": { - "jest": true - } -} diff --git a/web/saito/lib/glide/.eslintrc.js b/web/saito/lib/glide/.eslintrc.js new file mode 100644 index 0000000000..dc28f8ede5 --- /dev/null +++ b/web/saito/lib/glide/.eslintrc.js @@ -0,0 +1,23 @@ +module.exports = { + env: { + browser: true, + es2021: true, + node: true, + jquery: true, + }, + extends: [ + // 'airbnb-base', + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "prettier", + ], + parser: "@typescript-eslint/parser", + parserOptions: { + ecmaVersion: 13, + sourceType: "module", + }, + plugins: ["@typescript-eslint"], + rules: { + "prefer-const": 0, + }, +};