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

Commit a1afb287 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Merge branch 'dev/eslint' into 'main'

Add eslint and prettier

See merge request !28
parents 7d648f66 a6d9bba9
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'

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

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

app/.prettierignore

0 → 100644
+3 −0
Original line number Diff line number Diff line
# Ignore artifacts:
lib
dist

app/.prettierrc

0 → 100644
+1 −0
Original line number Diff line number Diff line
{}

app/eslint.config.js

0 → 100644
+9 −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/*"] },
];
+838 −630

File changed.

Preview size limit exceeded, changes collapsed.

Loading