Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,21 @@ export default [
'unused-imports': unusedImports,
tailwindcss,
},
// Resolved relative to the nearest eslint.config.ts/package.json above
// the linted file — that's apps/app/, not the workspace root.
settings: {
tailwindcss: { cssConfigPath: './src/styles.css' },
},
// Override the preset's severities and add the workspace's own rules.
rules: {
'tailwindcss/classnames-order': 'warn',
'tailwindcss/no-arbitrary-value': 'warn',
'tailwindcss/classnames-order': 'error',
'tailwindcss/no-arbitrary-value': 'error',
'tailwindcss/no-unnecessary-arbitrary-value': 'error',
'tailwindcss/no-custom-classname': [
'warn',
'error',
// { whitelist: ['custom\\-*'] },
],
'tailwindcss/no-contradicting-classname': 'warn',
'tailwindcss/no-contradicting-classname': 'error',
'@nx/enforce-module-boundaries': [
'error',
{
Expand Down Expand Up @@ -56,6 +62,12 @@ export default [
},
{
files: ['**/*.html'],
plugins: {
tailwindcss,
},
settings: {
tailwindcss: { cssConfigPath: './src/styles.css' },
},
rules: {
'@angular-eslint/template/attributes-order': [
'error',
Expand All @@ -71,6 +83,14 @@ export default [
],
},
],
'tailwindcss/classnames-order': 'error',
'tailwindcss/no-arbitrary-value': 'error',
'tailwindcss/no-unnecessary-arbitrary-value': 'error',
'tailwindcss/no-custom-classname': [
'error',
// { whitelist: ['custom\\-*'] },
],
'tailwindcss/no-contradicting-classname': 'error',
},
},
];
Loading