-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrslint.config.ts
More file actions
40 lines (38 loc) · 1 KB
/
Copy pathrslint.config.ts
File metadata and controls
40 lines (38 loc) · 1 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
import { defineConfig, globalIgnores, js, ts } from '@rslint/core';
import { effectBoundaryPlugin } from './scripts/eslint-plugin-effect-boundary.ts';
export default defineConfig([
globalIgnores([
'**/dist/**',
'repos/**',
]),
js.configs.recommended,
ts.configs.recommended,
{
files: ['scripts/**/*.mjs', 'packages/workbench/scripts/**/*.mjs'],
languageOptions: {
globals: {
console: 'readonly',
process: 'readonly',
},
},
},
{
files: ['**/*.{ts,tsx,js,mjs}'],
ignores: ['**/src/effect/boundary.ts'],
plugins: { 'effect-boundary': effectBoundaryPlugin },
rules: {
'effect-boundary/no-ad-hoc-run': 'error',
},
},
{
files: ['**/*.{ts,tsx,js,mjs}'],
rules: {
'no-restricted-imports': ['error', {
patterns: [{
group: ['**/repos/**', 'repos/**', '**/repos/effect/**'],
message: 'Never import from repos/**. Application code imports the npm effect package.',
}],
}],
},
},
]);