Skip to content

Commit

Permalink
[14] Added lint action + added examples to eslint ignores (#15)
Browse files Browse the repository at this point in the history
* added lint action + added examples to eslint ignores

* jobs, actions and files renamed

* testing linting action

* Revert "testing linting action"

This reverts commit 212b19f.
  • Loading branch information
AAndonio authored May 16, 2024
1 parent ca2f42e commit 525ef77
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ module.exports = {
},
rules: {
'vue/no-deprecated-slot-attribute': 0
}
},
ignorePatterns: ['src/components/examples/']
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy Storybook
name: Docs
on:
push:
branches:
Expand All @@ -7,7 +7,7 @@ permissions:
contents: write

jobs:
build-and-deploy:
build-and-deploy-storybook:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Rules
on: pull_request

jobs:
check-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Clean install
run: npm ci
- name: Run lint
run: npm run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --project .",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore ",
"format": "prettier --write src/",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build -o docs",
Expand Down

0 comments on commit 525ef77

Please sign in to comment.