diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1ceefaf9..13708e28 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,7 +47,7 @@ jobs: run: yarn install --immutable - name: Eslint - run: yarn run eslint:check + run: yarn run lint Prettier: runs-on: ubuntu-latest diff --git a/package.json b/package.json index 9e161e62..34411471 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "watch": "grafana-toolkit plugin:dev --watch", "sign": "grafana-toolkit plugin:sign", "build-sign-release": "yarn run build && yarn run sign && yarn run package", - "eslint:check": "eslint src spec --ext .tsx,.ts", - "eslint:fix": "yarn run eslint:check --fix", + "lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .", + "lint:fix": "yarn run lint --fix", "package": "cp -r dist/ simpod-json-datasource && zip simpod-json-datasource.zip simpod-json-datasource -r && rm -rfd simpod-json-datasource", "prettier:check": "prettier --list-different \"**/*.{ts,tsx,scss}\"", "prettier:write": "yarn run prettier:check --write",