This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/.eslintrc.cjs

60 lines
1.6 KiB
JavaScript
Raw Normal View History

/* eslint-env node */
2022-10-03 19:36:55 +00:00
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
'root': true,
'env': {
'browser': true,
2022-10-17 14:12:16 +00:00
'es2022': true,
'node': true,
},
'extends': [
'eslint:recommended',
2022-10-03 19:36:55 +00:00
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript/recommended',
],
'rules': {
2022-10-03 19:36:55 +00:00
'quotes': ['error', 'single'],
'comma-dangle': ['error', 'always-multiline'],
'semi': ['error', 'never'],
'vue/v-on-event-hyphenation': ['warn', 'never', { 'autofix': true }],
2024-02-07 11:18:19 +00:00
'vue/multi-word-component-names': 'off',
2022-10-03 19:36:55 +00:00
// uncategorized rules:
'vue/component-api-style': ['error', ['script-setup']],
'vue/component-name-in-template-casing': ['warn', 'PascalCase'],
'vue/custom-event-name-casing': ['error', 'camelCase'],
'vue/define-macros-order': 'error',
'vue/match-component-file-name': ['error', {
'extensions': ['.js', '.jsx', '.ts', '.tsx', '.vue'],
'shouldMatchCase': true,
}],
'vue/no-boolean-default': ['warn', 'default-false'],
'vue/match-component-import-name': 'error',
'vue/prefer-separate-static-class': 'warn',
'vue/padding-line-between-blocks': 'error',
'vue/next-tick-style': ['error', 'promise'],
'vue/block-lang': [
'error',
2022-10-03 19:36:55 +00:00
{ 'script': { 'lang': 'ts' } },
],
2022-10-03 19:36:55 +00:00
'vue/no-required-prop-with-default': ['error', { 'autofix': true }],
'vue/no-duplicate-attr-inheritance': 'error',
'vue/no-empty-component-block': 'error',
2024-02-07 11:18:19 +00:00
'vue/html-indent': ['error', 'tab'],
2022-10-03 19:36:55 +00:00
// vue3
'vue/no-ref-object-destructure': 'error',
},
'parser': 'vue-eslint-parser',
'parserOptions': {
'parser': '@typescript-eslint/parser',
2022-10-03 19:36:55 +00:00
'ecmaVersion': 'latest',
},
'ignorePatterns': [
'*.test.*',
'cypress/*',
],
}