Skip to content

Commit 16031b4

Browse files
committed
Replace eslint with oxlint; upgrade dependencies; remove husky
1 parent 7681eed commit 16031b4

File tree

11 files changed

+646
-1831
lines changed

11 files changed

+646
-1831
lines changed

.claude/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npm ls:*)",
5+
"Bash(npm audit:*)",
6+
"Bash(npm install:*)",
7+
"Bash(npm view:*)",
8+
"Bash(npm run:*)",
9+
"Bash(npx oxlint:*)",
10+
"Bash(npm i:*)",
11+
"Bash(npm test:*)"
12+
]
13+
}
14+
}

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

.oxlintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"categories": {
4+
"correctness": "error",
5+
"suspicious": "warn"
6+
},
7+
"rules": {},
8+
"ignorePatterns": ["dist", "tests"]
9+
}

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.vscode
2-
.husky
32
dist
43
node_modules
54
.eslintcache

contribute.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ The Profanity project includes an .nvmrc file, so you can run `nvm use` to switc
6161
2. NVM will install the required Node version if it isn't installed
6262
3. NVM will set your current Node version to the one required
6363

64-
#### Git Hooks
65-
66-
The Profanity project includes Husky for running Git Hooks. Running `git commit` will trigger `lint-staged` which will lint all files currently staged in Git. If linting fails, the commit will be cancelled
67-
6864
### Translations
6965

7066
We utilize a self-hosted instance of the Open Source [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) lib to translate the core English list of profane words.

eslint.config.mjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)