Skip to content

Commit 42b3378

Browse files
committed
fix: remove redundant oxlint config
1 parent 031a697 commit 42b3378

2 files changed

Lines changed: 5 additions & 38 deletions

File tree

oxlint.config.ts

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -39,40 +39,23 @@ export default defineConfig({
3939
],
4040
'perfectionist/sort-object-types': 'off',
4141
'perfectionist/sort-objects': 'off',
42-
'perfectionist/sort-interfaces': 'off',
43-
'perfectionist/sort-jsx-props': 'off',
44-
'typescript/await-thenable': 'error',
45-
'typescript/no-array-delete': 'error',
46-
'typescript/no-base-to-string': 'error',
47-
'typescript/no-duplicate-type-constituents': 'error',
48-
'typescript/no-floating-promises': 'error',
49-
'typescript/no-for-in-array': 'error',
50-
'typescript/no-implied-eval': 'error',
51-
'typescript/no-meaningless-void-operator': 'error',
52-
'typescript/no-misused-spread': 'error',
53-
'typescript/no-redundant-type-constituents': 'error',
5442
'typescript/no-this-alias': 'error',
5543
'typescript/no-unnecessary-parameter-property-assignment': 'error',
56-
'typescript/no-unsafe-unary-minus': 'error',
57-
'typescript/no-useless-default-assignment': 'error',
5844
'typescript/no-useless-empty-export': 'error',
59-
'typescript/require-array-sort-compare': 'error',
60-
'typescript/restrict-template-expressions': 'error',
61-
'typescript/unbound-method': 'error',
6245
'unicorn/consistent-function-scoping': 'off',
6346
'unicorn/numeric-separators-style': 'off',
6447
'unicorn/prefer-top-level-await': 'off',
6548
'unicorn/prefer-structured-clone': 'off',
6649
},
6750
overrides: [
6851
{
69-
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
52+
files: ['scripts/**/*.ts', 'scripts/**/*.mts', 'scripts/**/*.cts'],
7053
rules: {
7154
'no-undef': 'error',
7255
},
7356
},
7457
{
75-
files: ['src/**/*.ts', 'packages/capture-kit/src/**/*.ts'],
58+
files: ['src/**/*.ts', 'packages/host-kit/src/**/*.ts'],
7659
rules: {
7760
'no-restricted-imports': [
7861
'error',
@@ -81,7 +64,7 @@ export default defineConfig({
8164
{
8265
name: 'node:child_process',
8366
message:
84-
'Use process helpers from @agent-device/capture-kit/exec instead of importing node:child_process directly.',
67+
'Use process helpers from @agent-device/host-kit/command instead of importing node:child_process directly.',
8568
},
8669
],
8770
},
@@ -90,8 +73,8 @@ export default defineConfig({
9073
},
9174
{
9275
files: [
93-
'packages/capture-kit/src/exec.ts',
94-
'packages/capture-kit/src/*.test.ts',
76+
'packages/host-kit/src/internal/exec.ts',
77+
'packages/host-kit/src/**/*.test.ts',
9578
'src/**/*.test.ts',
9679
'src/**/__tests__/**/*.ts',
9780
],
@@ -101,27 +84,12 @@ export default defineConfig({
10184
},
10285
{
10386
files: ['examples/test-app/src/**/*.tsx'],
104-
env: {
105-
browser: true,
106-
},
10787
rules: {
10888
'react/immutability': 'off',
10989
'react/purity': 'off',
11090
'react/refs': 'off',
11191
},
11292
},
113-
{
114-
files: ['examples/test-app/src/**/*.ts', 'examples/test-app/src/**/*.tsx'],
115-
globals: {
116-
__DEV__: 'readonly',
117-
},
118-
},
119-
{
120-
files: ['src/core/command-descriptor/registry.ts'],
121-
globals: {
122-
__OWNER_FILES__: 'readonly',
123-
},
124-
},
12593
{
12694
files: ['examples/test-app/app.config.js'],
12795
rules: {

scripts/check-affected/model.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ const ROOT_TOOLING = new Set([
188188
'tsdown.config.ts',
189189
'vitest.config.ts',
190190
'.fallowrc.json',
191-
'.oxlintrc.json',
192191
'oxlint.config.ts',
193192
'.oxfmtrc.json',
194193
'.npmrc',

0 commit comments

Comments
 (0)