mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
* fix(admin): update test files predeploy * fix(admin): update test files predeploy * fix(admin): update test files predeploy
72 lines
2.1 KiB
JavaScript
72 lines
2.1 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'],
|
|
},
|
|
],
|
|
// add your custom rules here
|
|
rules: {
|
|
'no-console': ['error'],
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'node/no-callback-literal': 0, // This is here to allow tests run properly
|
|
'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-static-inline-styles': 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-dynamic-keys': 'error',
|
|
'@intlify/vue-i18n/no-raw-text': 0, // TODO remove at the end of migration and fix
|
|
// '@intlify/vue-i18n/no-unused-keys': [
|
|
// 'error',
|
|
// {
|
|
// src: './src',
|
|
// extensions: ['.js', '.vue'],
|
|
// ignores: ['/overlay/'],
|
|
// enableFix: false,
|
|
// },
|
|
// ],
|
|
'@intlify/vue-i18n/no-unused-keys': 0, // TODO remove at the end of migration and fix
|
|
'@intlify/vue-i18n/no-missing-keys-in-other-locales': 'error',
|
|
'prettier/prettier': [
|
|
'error',
|
|
{
|
|
htmlWhitespaceSensitivity: 'ignore',
|
|
},
|
|
],
|
|
},
|
|
settings: {
|
|
'vue-i18n': {
|
|
localeDir: './src/locales/*.json',
|
|
// Specify the version of `vue-i18n` you are using.
|
|
// If not specified, the message will be parsed twice.
|
|
messageSyntaxVersion: '^8.26.5',
|
|
},
|
|
},
|
|
}
|