gradido/frontend/.eslintrc.js
MateuszMichalowski b69d2273ae
feat(frontend): add transaction link in latest transactions (#3375)
* fix(frontend): post migration fixes

* fix(frontend): align with stylelint

* fix(frontend): fix tests and dashboard layout

* feat(frontend): add link to transactions

* feat(frontend): remove unused code

* feat(frontend): let dynamic keys in translations

* feat(frontend): fix stylelint

* feat(frontend): add missing styles for breadcrumb

---------

Co-authored-by: einhornimmond <dario.rekowski@gmx.de>
2024-10-15 16:06:34 +02:00

95 lines
2.9 KiB
JavaScript

module.exports = {
root: true,
env: {
browser: true,
node: true,
'vue/setup-compiler-macros': true,
},
parserOptions: {
ecmaVersion: 2020,
},
extends: [
'standard',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'plugin:@intlify/vue-i18n/recommended',
'prettier',
],
// required to lint *.vue files
plugins: ['vue', 'prettier'],
overrides: [
{
files: ['*.json'],
extends: ['plugin:@intlify/vue-i18n/recommended'],
rules: {
// TODO: enable
'@intlify/vue-i18n/no-html-messages': 'off',
},
},
],
// add your custom rules here
rules: {
'no-console': ['error'],
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-useless-escape': 0,
'no-unused-vars': 0, // TODO remove at the end of migration and fix
'node/no-callback-literal': 0, // Necessary to run tests
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
// 'vue/no-static-inline-styles': [
// 'error',
// {
// allowBinding: false,
// },
// ],
'vue/multi-word-component-names': 0,
'vue/no-v-html': 0,
'vue/no-export-in-script-setup': 0, // TODO remove at the end of migration and fix
'vue/prop-name-casing': 0, // TODO remove at the end of migration and fix
'vue/require-explicit-emits': 0, // TODO remove at the end of migration and fix
'vue/no-static-inline-styles': 0, // TODO remove at the end of migration and fix
'vue/v-on-event-hyphenation': 0, // TODO remove at the end of migration and fix
'vue/require-default-prop': 0, // TODO remove at the end of migration and fix
'vue/no-computed-properties-in-data': 0, // TODO remove at the end of migration and fix
'@intlify/vue-i18n/no-missing-keys': 0, // TODO remove at the end of migration and fix
'@intlify/vue-i18n/no-unused-keys': [
'error',
{
src: './src',
extensions: ['.js', '.vue'],
// TODO: remove ignores
ignores: [
'/form./',
'/time./',
'/decay.types./',
'settings.password.resend_subtitle',
'settings.password.reset',
'settings.password.reset-password.text',
'settings.password.set',
'settings.password.set-password.text',
'settings.password.subtitle',
'math.asterisk',
'/pageTitle./',
'error.empty-transactionlist',
'error.no-transactionlist',
],
enableFix: false,
},
],
'@intlify/vue-i18n/no-missing-keys-in-other-locales': 'error',
'prettier/prettier': [
'error',
{
htmlWhitespaceSensitivity: 'ignore',
},
],
},
settings: {
'vue-i18n': {
localeDir: './src/locales/{en,de}.json',
// Specify the version of `vue-i18n` you are using.
// If not specified, the message will be parsed twice.
messageSyntaxVersion: '^9.13.1',
},
},
}