forked from tech-leads-club/agent-skills
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
58 lines (57 loc) · 1.81 KB
/
Copy patheslint.config.js
File metadata and controls
58 lines (57 loc) · 1.81 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
56
57
58
import js from '@eslint/js'
import nxPlugin from '@nx/eslint-plugin'
import eslintConfigPrettier from 'eslint-config-prettier'
import { defineConfig, globalIgnores } from 'eslint/config'
import jsoncParser from 'jsonc-eslint-parser'
import tseslint from 'typescript-eslint'
export default defineConfig([
js.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
globalIgnores([
'dist/**',
'node_modules/**',
'**/*.js',
'**/*.d.ts',
'.nx/**',
'**/.*/**',
'**/next.config.mjs',
'**/postcss.config.cjs',
]),
{
name: 'tlc-typescript',
files: ['**/*.ts'],
languageOptions: { ecmaVersion: 2022, sourceType: 'module' },
rules: {
'prefer-const': 'error',
'no-var': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'error',
},
},
{
files: ['packages/*/package.json'],
plugins: { '@nx': nxPlugin },
languageOptions: { parser: jsoncParser },
rules: {
'@nx/dependency-checks': [
'error',
{
ignoredDependencies: [
'@tech-leads-club/core',
'react-dom', // Peer dependency of Next.js
'@tailwindcss/postcss', // Used in postcss.config.cjs
'tailwindcss', // Used in global.css via @import
'github-markdown-css', // Used in global.css via @import
'highlight.js', // Used in global.css via @import
'@jest/globals', // Used in tests only
'@testing-library/react', // Used in tests only
'fast-check', // Used in tests only
'@nx/next', // Used in Next.js apps
'zod', // Runtime import in built CLI (from core lockfile); not a direct TS import in packages/cli
],
},
],
},
},
])