Skip to content

Commit

Permalink
migrate to oxlint (#4387)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored May 15, 2024
1 parent d60c5cb commit a1e7ffd
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 2,091 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test/fixtures
test/ts/
*.ts
dist
benchmarks
2 changes: 0 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/*eslint no-var:0, object-shorthand:0 */

var coverage = String(process.env.COVERAGE) === 'true',
minify = String(process.env.MINIFY) === 'true',
ci = String(process.env.CI).match(/^(1|true)$/gi),
Expand Down
42 changes: 42 additions & 0 deletions oxlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"rules": {
"camelcase": [
1,
{
"allow": ["__test__*", "unstable_*", "UNSAFE_*"]
}
],
"no-unused-vars": [
2,
{
"args": "none",
"varsIgnorePattern": "^h|React$"
}
],
"typescript/no-namespace": 0,
"no-constant-binary-expression": 0,
"no-useless-catch": 0,
"no-empty-pattern": 0,
"prefer-rest-params": 0,
"prefer-spread": 0,
"no-cond-assign": 0,
"react/jsx-no-bind": 0,
"react/no-danger": "off",
"react/prefer-stateless-function": 0,
"react/sort-comp": 0,
"jest/valid-expect": 0,
"jest/no-disabled-tests": 0,
"jest/no-test-callback": 0,
"jest/expect-expect": 0,
"jest/no-standalone-expect": 0,
"jest/no-export": 0,
"react/no-find-dom-node": 0,
"react/no-direct-mutation-state": 0,
"react/no-children-prop": 0,
"react/jsx-key": 0,
"react/no-string-refs": 0,
"react/require-render-return": 0,
"unicorn/no-new-array": 0,
"unicorn/prefer-string-starts-ends-with": 0
}
}
Loading

0 comments on commit a1e7ffd

Please # to comment.