mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
33 lines
766 B
TypeScript
33 lines
766 B
TypeScript
import config, { vue2, vitest } from 'eslint-config-it4c'
|
|
|
|
export default [
|
|
...config,
|
|
...vue2,
|
|
...vitest,
|
|
{ ignores: ['dist/', 'node_modules/'] },
|
|
{
|
|
rules: {
|
|
'n/file-extension-in-import': [
|
|
'error',
|
|
'never',
|
|
{ '.vue': 'always', '.json': 'always', '.css': 'always' },
|
|
],
|
|
'import-x/no-unassigned-import': ['error', { allow: ['**/*.css'] }],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.json'],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-expressions': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.spec.ts', '**/*.spec.tsx'],
|
|
rules: {
|
|
'vitest/consistent-test-filename': ['error', { pattern: '.*\\.spec\\.[tj]sx?$' }],
|
|
'vitest/prefer-expect-assertions': 'off',
|
|
'vitest/no-hooks': 'off',
|
|
},
|
|
},
|
|
]
|