Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 12205031 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Add eslint

Ref: #2
parent 7d648f66
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -37,6 +37,16 @@ docker-build-image-tag:
  rules:
    - if: '$CI_COMMIT_TAG'

linter:
  stage: build
  image: node:23-alpine
  script:
    - cd app
    - npm install
    - npm run lint
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'

deploy_staging:
  stage: deploy-staging
  needs: ["docker-build-image-latest"]

app/eslint.config.js

0 → 100644
+10 −0
Original line number Diff line number Diff line
import globals from "globals";
import pluginJs from "@eslint/js";


/** @type {import('eslint').Linter.Config[]} */
export default [
  {languageOptions: { globals: globals.browser }},
  pluginJs.configs.recommended,
  {ignores: ["src/lib/*", "dist/*"]},
];
+1065 −0

File changed.

Preview size limit exceeded, changes collapsed.

+5 −1
Original line number Diff line number Diff line
@@ -6,9 +6,13 @@
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
    "preview": "vite preview",
    "lint": "npx eslint ."
  },
  "devDependencies": {
    "@eslint/js": "^9.17.0",
    "eslint": "^9.17.0",
    "globals": "^15.14.0",
    "vite": "^6.0.5"
  },
  "dependencies": {