Skip to content

Commit d1e305f

Browse files
committed
Remove eslint-disable, forbid it in .clinerules
1 parent fb70552 commit d1e305f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.clinerules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
- Keep the documentation in sync with the codebase
1919
- Add examples where appropriate
2020

21+
4. Lint Rules:
22+
- Never disable any lint rules without explicit user approval
23+
- If a lint rule needs to be disabled, ask the user first and explain why
24+
- Prefer fixing the underlying issue over disabling the lint rule
25+
- Document any approved lint rule disabling with a comment explaining the reason
26+
2127
# Adding a New Setting
2228

2329
To add a new setting that persists its state, follow these steps:

webview-ui/src/components/chat/__tests__/ChatTextArea.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable import/first */
2-
import React from 'react';
31
import { render, fireEvent, screen } from '@testing-library/react';
42
import '@testing-library/jest-dom';
53
import ChatTextArea from '../ChatTextArea';

0 commit comments

Comments
 (0)