Skip to content

Commit

Permalink
ci: added eslint checks for ui
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Feb 15, 2024
1 parent 1126aad commit 833682c
Show file tree
Hide file tree
Showing 92 changed files with 2,209 additions and 1,863 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: ci-ui

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm i
working-directory: ./ui
- run: npm run lint:ci
working-directory: ./ui
19 changes: 11 additions & 8 deletions ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
module.exports = {
rules: {
indent: ["error", "tab"],
indent: "off",
"no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-types": "warn",
"prettier/prettier": [2, { useTabs: true }],
},
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 2020,
sourceType: "module",
parser: "@typescript-eslint/parser",
ecmaVersion: 2020,
sourceType: "module",
},
root: true,
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-essential",
"prettier/@typescript-eslint",
"plugin:vue/vue3-recommended",
"eslint:recommended",
"@vue/eslint-config-prettier",
"prettier/vue",
"prettier",
],
plugins: ["prettier", "@typescript-eslint"],
plugins: ["prettier", "@typescript-eslint", "vue"],
env: {
node: true,
},
Expand Down
Loading

0 comments on commit 833682c

Please sign in to comment.