mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
63 lines
1.4 KiB
JavaScript
63 lines
1.4 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
jest: true,
|
|
},
|
|
parserOptions: {
|
|
parser: 'babel-eslint',
|
|
},
|
|
extends: [
|
|
'standard',
|
|
'plugin:vue/essential',
|
|
'plugin:prettier/recommended',
|
|
'plugin:@intlify/vue-i18n/recommended',
|
|
],
|
|
// required to lint *.vue files
|
|
plugins: ['vue', 'prettier', 'jest'],
|
|
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',
|
|
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
|
|
'vue/no-static-inline-styles': [
|
|
'error',
|
|
{
|
|
allowBinding: false,
|
|
},
|
|
],
|
|
'@intlify/vue-i18n/no-dynamic-keys': 'error',
|
|
'@intlify/vue-i18n/no-unused-keys': [
|
|
'error',
|
|
{
|
|
src: './src',
|
|
extensions: ['.js', '.vue'],
|
|
ignores: ['/overlay/'],
|
|
enableFix: false,
|
|
},
|
|
],
|
|
'@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',
|
|
},
|
|
},
|
|
}
|