Process HTML for better web typography.
1import zazen from '@zazen/eslint-config'
2import zazenNode from '@zazen/eslint-config/node'
3import zazenStylistic from '@zazen/eslint-config/stylistic'
4import { defineConfig } from 'eslint/config'
5
6const config = defineConfig([
7 {
8 name: 'project:ignores',
9 ignores: ['**/dist', '**/__tests__/*-errors.js'],
10 },
11
12 ...zazen,
13 ...zazenNode,
14
15 {
16 name: 'project:rules',
17 settings: {
18 'import-x/ignore': ['node_modules'],
19 node: {
20 version: '20',
21 },
22 },
23 rules: {
24 'import-x/no-anonymous-default-export': ['error', { allowObject: true }],
25 },
26 },
27 {
28 name: 'project:rules:tests',
29 files: ['**/__tests__/**/*.?(m|c)js'],
30 ignores: ['**/__tests__/*-errors.js'],
31 rules: {
32 'import-x/no-extraneous-dependencies': 'off',
33 },
34 },
35 {
36 name: 'project:rules:configs',
37 files: ['**/*.config.js'],
38 rules: {
39 'import-x/no-extraneous-dependencies': 'off',
40 },
41 },
42
43 zazenStylistic,
44])
45
46export default config