forked from Kong/httpsnippet
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
37 lines (36 loc) · 1016 Bytes
/
oxlint.config.ts
File metadata and controls
37 lines (36 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import oxlintConfig from '@readme/oxlint-config';
import oxlintConfigVitest from '@readme/oxlint-config/testing/vitest';
import oxlintConfigTS from '@readme/oxlint-config/typescript';
import { defineConfig } from 'oxlint';
export default defineConfig({
extends: [oxlintConfig, oxlintConfigTS],
options: {
reportUnusedDisableDirectives: 'error',
},
ignorePatterns: ['coverage/', 'dist/', 'src/targets/**/fixtures/'],
categories: {
suspicious: 'error',
},
env: {
browser: true,
commonjs: true,
es2022: true,
node: true,
},
rules: {
'class-methods-use-this': 'off',
'default-case': 'off',
'max-classes-per-file': 'off',
'no-param-reassign': 'off', // @fixme
'no-use-before-define': 'off', // @fixme
'unicorn/consistent-function-scoping': 'off', // @fixme
'unicorn/no-array-sort': 'off', // @fixme
},
overrides: [
{
files: ['test/**/*.test.{js,ts}'],
...oxlintConfigVitest,
rules: oxlintConfigVitest.rules,
},
],
});