Skip to content

Commit

Permalink
Add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
utarwyn committed May 19, 2024
1 parent 2d4e8d0 commit df14c01
Show file tree
Hide file tree
Showing 6 changed files with 1,704 additions and 23 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier/skip-formatting",
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
"vue/multi-word-component-names": "warn",
},
};
13 changes: 11 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,22 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.X
uses: actions/setup-node@v3
with:
node-version: 18.X
cache: 'npm'
- run: npm install
- run: npm run build

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Replace symlinks by the targeted file
run: find ./dist -type l -exec sh -c 'cp --remove-destination "$(readlink "{}")" "{}"' \;
- name: Archive production artifacts
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ jobs:
- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Build
run: npm run build
Loading

0 comments on commit df14c01

Please sign in to comment.