Skip to content

Commit 12a2891

Browse files
Lint rule to prevent node in common and engine (#2523)
## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
1 parent 880e369 commit 12a2891

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

packages/common/.eslintrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": ["*.ts"],
5+
"excludedFiles": ["*.test.ts"],
6+
"rules": {
7+
"import/no-nodejs-modules": "error"
8+
}
9+
}
10+
]
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": ["*.ts"],
5+
"excludedFiles": ["src/scripts/**", "src/testUtil/**", "*.test.ts"],
6+
"rules": {
7+
"import/no-nodejs-modules": "error"
8+
}
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)