-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
42 lines (41 loc) · 1.18 KB
/
eslint.config.mjs
File metadata and controls
42 lines (41 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import js from '@eslint/js';
import json from '@eslint/json';
import prettier from 'eslint-config-prettier';
import { defineConfig, globalIgnores } from 'eslint/config';
import tseslint from 'typescript-eslint';
import nlDesignSystemConfig from '@nl-design-system/eslint-config/configs/nl-design-system.config.mjs';
export default defineConfig([
globalIgnores(['**/dist/', '**/build/', '**/coverage/', '**/tmp/']),
{
name: '@eslint/js recommended',
files: ['**/*.{js,cjs,mjs,ts}'],
...js.configs.recommended,
},
{
name: 'typescript-eslint recommended',
files: ['**/*.ts'],
extends: [tseslint.configs.recommended],
},
{
name: '@eslint/json recommended - JSON',
files: ['**/*.json'],
ignores: ['**/tsconfig*.json'],
language: 'json/json',
...json.configs.recommended,
},
{
name: '@eslint/json recommended - JSONC',
files: ['**/tsconfig*.json'],
language: 'json/jsonc',
...json.configs.recommended,
},
{
name: '@nl-design-system/eslint-config/configs/nl-design-system.config.mjs',
files: ['**/*.{js,cjs,mjs,ts}'],
extends: [nlDesignSystemConfig],
},
{
name: 'eslint-config-prettier',
...prettier,
},
]);