Skip to content

Commit

Permalink
Setup linting with ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed May 24, 2024
1 parent e320975 commit 99f648c
Show file tree
Hide file tree
Showing 3 changed files with 511 additions and 11 deletions.
19 changes: 19 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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: {
'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',
}
},
]
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"name": "open-prices",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build-staging": "vite build --base=/app/ --mode preprod",
"build-prod": "vite build --base=/app/ --mode prod",
"preview": "vite preview",
"lint": "eslint",
"cy:open": "cypress open",
"cy:run": "cypress run",
"test": "start-server-and-test dev http://localhost:5173 cy:run"
Expand Down Expand Up @@ -37,7 +39,10 @@
"autoprefixer": "^10.4.16",
"cross-env": "^7.0.3",
"cypress": "^13.8.1",
"eslint": "^9.3.0",
"eslint-plugin-vue": "^9.26.0",
"postcss": "^8.4.31",
"prettier": "^3.2.5",
"start-server-and-test": "^2.0.3",
"vite": "^4.5.0"
},
Expand Down
Loading

0 comments on commit 99f648c

Please sign in to comment.