generated from posva/vite-tailwind-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: setup linting with ESLint & fix files (#586)
- Loading branch information
Showing
78 changed files
with
1,725 additions
and
857 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Linting & e2e tests | ||
|
||
on: push | ||
|
||
jobs: | ||
lint-and-test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# Install npm dependencies, cache them correctly | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
# just perform install | ||
runTests: false | ||
- name: Lint with ESLint | ||
run: yarn lint | ||
- name: Run e2e tests | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
# we have already installed all dependencies above | ||
install: false | ||
# run server in the background | ||
start: yarn dev |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import js from '@eslint/js' | ||
import pluginVue from 'eslint-plugin-vue' | ||
|
||
export default [ | ||
js.configs.recommended, | ||
...pluginVue.configs['flat/recommended'], | ||
{ | ||
ignores: ['dist/**', '*.config.js', 'tests/**'], | ||
}, | ||
{ | ||
rules: { | ||
'no-unused-vars': 'warn', | ||
'vue/no-mutating-props': ['error', { 'shallowOnly': true }], | ||
'vue/no-reserved-component-names': 'off', | ||
'vue/multi-word-component-names': 'off', | ||
'vue/max-attributes-per-line': 'off', | ||
'vue/attribute-hyphenation': 'off', | ||
'vue/v-on-event-hyphenation': 'off', | ||
} | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.