IT4C.dev/eslint.config.ts
Ulf Gebhardt 33310a43c5
refactor(other): eslint config it4c advanced (#650)
* rename test:lint:eslint to lint and update eslint-config-it4c package

* simplify config and make it ts

* jest update & ts

* suppress server logging output in tests

* remove test node_env as it is default for jest

* use eslint-config-it4c

* packages = module

* fix tailwind as ts

* eslitn autofix

* more fixes

* tsconfig & some eslint rules

* fixes

* more fixes

* more exceptions

* do not allow warnings

* fix config

* ignore vuepress generated configs

* ts include fix
2026-02-14 17:34:37 +01:00

36 lines
675 B
TypeScript

import config, { vue3 } from 'eslint-config-it4c'
export default [
{
ignores: [
'coverage',
'backend',
'docs/.vuepress/.cache',
'docs/.vuepress/.temp',
'docs/.vuepress/dist',
'docs/.vuepress/*.mjs',
],
},
...config,
...vue3,
{
files: ['**/*.cjs'],
rules: {
'import-x/no-commonjs': 'off',
},
},
{
rules: {
'n/no-unpublished-import': 'off',
'import-x/no-extraneous-dependencies': 'off',
},
},
{
files: ['**/*.vue'],
rules: {
'vue/html-self-closing': ['error', { html: { void: 'any' } }],
'vue/singleline-html-element-content-newline': 'off',
},
},
]