generator.client.vue.eslint.config.js.mustache Maven / Gradle / Ivy
import globals from 'globals';
import typescript from 'typescript-eslint';
import js from '@eslint/js';
import vue from 'eslint-plugin-vue';
export default typescript.config(
{
languageOptions: {
globals: {
...globals.node,
},
},
},
{
ignores: ['{{projectBuildDirectory}}/'],
},
js.configs.recommended,
...typescript.configs.recommended.map(config => (config.name === 'typescript-eslint/base' ? config : { ...config, files: ['**/*.ts'] })),
...vue.configs['flat/recommended'],
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: { parser: '@typescript-eslint/parser' },
globals: { ...globals.browser },
},
},
{
files: ['src/*/webapp/**/*.vue', 'src/*/webapp/**/*.ts'],
languageOptions: {
globals: { ...globals.browser },
},
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
'@typescript-eslint/no-explicit-any': 'off',
'vue/html-self-closing': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
},
},
);