forked from trent_larson/crowd-funder-for-time-pwa
- Fix Vue template syntax in App.vue by using proper event handler format - Update Vite config to properly handle ESM imports and crypto modules - Add manual chunks for better code splitting - Improve environment variable handling in vite-env.d.ts - Fix TypeScript linting errors in App.vue
56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
export default {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
es2022: true
|
|
},
|
|
extends: [
|
|
'plugin:vue/vue3-recommended',
|
|
'eslint:recommended',
|
|
'@vue/typescript/recommended'
|
|
],
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: {
|
|
'ts': '@typescript-eslint/parser',
|
|
'js': '@typescript-eslint/parser',
|
|
'<template>': 'espree'
|
|
},
|
|
ecmaVersion: 2022,
|
|
sourceType: 'module',
|
|
extraFileExtensions: ['.vue'],
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
},
|
|
plugins: [
|
|
'@typescript-eslint',
|
|
'vue'
|
|
],
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }]
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.ts', '*.tsx', '*.mts'],
|
|
parser: '@typescript-eslint/parser'
|
|
},
|
|
{
|
|
files: ['*.js', '*.jsx', '*.mjs'],
|
|
parser: '@typescript-eslint/parser'
|
|
}
|
|
],
|
|
settings: {
|
|
'import/resolver': {
|
|
node: {
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', '.mjs', '.mts']
|
|
}
|
|
}
|
|
}
|
|
};
|