chore: refactor ESLint configuration for improved linting rules and performance fix: handle push event data parsing in service worker style: adjust tabbar item properties for better readability in App.vue refactor: remove unused functions and improve code clarity in TransactionDetail.vue fix: ensure consistent event handling in CalendarView.vue style: clean up component structure and formatting in various Vue files chore: update launch script for better command execution feat: add ESLint configuration file for consistent code style across the project fix: resolve issues with button click events in multiple components
53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
|
|
|
|
export default [
|
|
{
|
|
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', '**/node_modules/**', '.nuxt/**'],
|
|
},
|
|
{
|
|
files: ['**/*.{js,mjs,jsx}'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
rules: {
|
|
...js.configs.recommended.rules,
|
|
'indent': ['error', 2],
|
|
'quotes': ['error', 'single', { avoidEscape: true }],
|
|
'semi': ['error', 'never'],
|
|
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
'comma-dangle': ['error', 'never'],
|
|
'no-trailing-spaces': 'error',
|
|
'no-multiple-empty-lines': ['error', { max: 1 }],
|
|
'space-before-function-paren': ['error', 'always'],
|
|
},
|
|
},
|
|
...pluginVue.configs['flat/recommended'],
|
|
{
|
|
files: ['**/*.vue'],
|
|
rules: {
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-v-html': 'warn',
|
|
'indent': 'off',
|
|
},
|
|
},
|
|
skipFormatting,
|
|
{
|
|
files: ['**/service-worker.js', '**/src/registerServiceWorker.js'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.serviceworker,
|
|
...globals.browser,
|
|
},
|
|
},
|
|
},
|
|
]
|