-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
55 lines (53 loc) · 1.57 KB
/
eslint.config.mjs
File metadata and controls
55 lines (53 loc) · 1.57 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
43
44
45
46
47
48
49
50
51
52
53
54
55
import { eslintConfigs } from '@aligent/ts-code-standards';
import jsonParser from 'jsonc-eslint-parser';
import nxEslintPlugin from '@nx/eslint-plugin';
const eslintBaseConfig = [
...eslintConfigs.base,
{
ignores: [
'**/*.js',
'**/*.cjs',
'**/*.mjs',
'**/coverage',
'**/cdk.out',
'**/dist',
'**/out-tsc',
'**/vite.config.*.timestamp*',
'**/vitest.config.*.timestamp*',
],
},
{
files: ['**/*.ts'],
plugins: {
'@nx': nxEslintPlugin,
},
rules: {
'@nx/enforce-module-boundaries': [
'error',
{
allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?[jt]s$'],
enforceBuildableLibDependency: true,
depConstraints: [
{
sourceTag: 'scope:applications',
onlyDependOnLibsWithTags: ['scope:libs', 'scope:services'],
},
{
sourceTag: 'scope:services',
onlyDependOnLibsWithTags: ['scope:libs', 'scope:services'],
},
{
sourceTag: 'scope:libs',
onlyDependOnLibsWithTags: ['scope:libs'],
},
],
},
],
},
},
{
files: ['**/*.json'],
languageOptions: { parser: jsonParser },
},
];
export default eslintBaseConfig;