Skip to content

Commit 8834c75

Browse files
authored
chore(deps): update oxlint to latest (#2587)
* chore(deps): update oxlint to latest
1 parent 8c69ff3 commit 8834c75

45 files changed

Lines changed: 329 additions & 213 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/renovate.json5

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
enabled: false,
2222
},
2323
},
24-
{
25-
// blocked by oxlint issue: https://github.com/oxc-project/oxc/issues/19395 and https://github.com/oxc-project/oxc/issues/19431
26-
packageNames: ['oxlint'],
27-
allowedVersions: '1.43.0',
28-
},
2924
// i18next major version - let's wait until our next major
3025
{
3126
packageNames: ['i18next'],

.oxlintrc.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"plugins": ["import", "oxc", "typescript", "vitest"],
3+
"plugins": ["import", "oxc", "typescript"],
44
"jsPlugins": ["eslint-plugin-cypress"],
5-
"extends": ["recommended", "recommended-module"],
65
"env": {
76
"es2025": true,
87
"browser": true,
@@ -23,8 +22,11 @@
2322
"plugins": ["vitest"],
2423
"rules": {
2524
"vitest/expect-expect": "error",
25+
"vitest/no-conditional-expect": "off",
2626
"vitest/no-disabled-tests": "warn",
27-
"vitest/no-focused-tests": "error"
27+
"vitest/no-focused-tests": "error",
28+
"vitest/require-mock-type-parameters": "off",
29+
"vitest/valid-expect": "error"
2830
}
2931
},
3032
{
@@ -34,7 +36,10 @@
3436
"oxc/erasing-op": "off",
3537
"cypress/no-debug": "error",
3638
"import/extensions": "off",
37-
"vitest/*": "off"
39+
"vitest/expect-expect": "off",
40+
"vitest/no-disabled-tests": "off",
41+
"vitest/no-focused-tests": "off",
42+
"vitest/valid-expect": "off"
3843
}
3944
},
4045
{
@@ -49,25 +54,18 @@
4954
"typescript/consistent-type-definitions": "error",
5055
"typescript/consistent-type-exports": "error",
5156
"typescript/consistent-type-imports": "error",
52-
"typescript/member-ordering": "error",
5357
"typescript/no-empty-function": "off",
5458
"typescript/no-empty-object-type": ["error", { "allowInterfaces": "with-single-extends" }],
5559
"typescript/no-explicit-any": "off",
5660
"typescript/no-inferrable-types": "error",
5761
"typescript/no-unsafe-function-type": "off",
5862
"typescript/no-non-null-assertion": "off",
5963
"typescript/no-unused-expressions": "off",
60-
"typescript/no-unused-vars": [
61-
"error",
62-
{
63-
"argsIgnorePattern": "^_",
64-
"destructuredArrayIgnorePattern": "^_",
65-
"caughtErrors": "none"
66-
}
67-
],
68-
"import/extensions": ["error", "always", { "ignorePackages": true }],
64+
"typescript/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_", "caughtErrors": "none" }],
65+
// blocked by https://github.com/oxc-project/oxc/issues/19431
66+
// use "lint:local-js-imports" npm script in the meantime to catch any missing local JS imports
67+
"import/extensions": "off",
6968
"import/no-self-import": "error",
70-
"import/no-useless-path-segments": ["error", { "noUselessIndex": true }],
7169
"no-async-promise-executor": "off",
7270
"oxc/erasing-op": "off",
7371
"object-shorthand": "error"

demos/aurelia/test/cypress/e2e/example28.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ describe('Example 28 - Tree Data (from a Hierarchical Dataset)', () => {
193193
});
194194
});
195195

196-
it('should filter the Files by the input search string and expect 4 rows and 1st column to have ', () => {
196+
it('should filter the Files by the input search string and expect 4 rows and 1st column to have', () => {
197197
const filteredFiles = ['documents', 'pdf', 'map2.pdf', 'map.pdf'];
198198

199199
cy.get('[data-test=search-string]').type('map');

demos/aurelia/test/cypress/e2e/example53.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe('Example 53 - Custom Filter Bar ', () => {
1+
describe('Example 53 - Custom Filter Bar', () => {
22
const titles = ['Item', 'Cost', 'State Tax', 'County Tax', 'Federal Tax', 'Sub-Total', 'Total', 'Type'];
33

44
it('should display Example title', () => {

demos/react/test/cypress/e2e/example28.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ describe('Example 28 - Tree Data (from a Hierarchical Dataset)', () => {
193193
});
194194
});
195195

196-
it('should filter the Files by the input search string and expect 4 rows and 1st column to have ', () => {
196+
it('should filter the Files by the input search string and expect 4 rows and 1st column to have', () => {
197197
const filteredFiles = ['documents', 'pdf', 'map2.pdf', 'map.pdf'];
198198

199199
cy.get('[data-test=search-string]').type('map');

demos/react/test/cypress/e2e/example53.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe('Example 53 - Custom Filter Bar ', () => {
1+
describe('Example 53 - Custom Filter Bar', () => {
22
const titles = ['Item', 'Cost', 'State Tax', 'County Tax', 'Federal Tax', 'Sub-Total', 'Total', 'Type'];
33

44
it('should display Example title', () => {

demos/vue/src/components/Example26.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ const vueComponentFormatter: Formatter = (_row: number, _cell: number, _val: any
314314
function setAutoEdit(autoEdit: boolean) {
315315
isAutoEdit.value = autoEdit;
316316
vueGrid.slickGrid.setOptions({
317-
autoEdit: autoEdit,
317+
autoEdit,
318318
});
319319
return true;
320320
}

demos/vue/test/cypress/e2e/example28.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ describe('Example 28 - Tree Data (from a Hierarchical Dataset)', () => {
193193
});
194194
});
195195

196-
it('should filter the Files by the input search string and expect 4 rows and 1st column to have ', () => {
196+
it('should filter the Files by the input search string and expect 4 rows and 1st column to have', () => {
197197
const filteredFiles = ['documents', 'pdf', 'map2.pdf', 'map.pdf'];
198198

199199
cy.get('[data-test=search-string]').type('map');

demos/vue/test/cypress/e2e/example53.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe('Example 53 - Custom Filter Bar ', () => {
1+
describe('Example 53 - Custom Filter Bar', () => {
22
const titles = ['Item', 'Cost', 'State Tax', 'County Tax', 'Federal Tax', 'Sub-Total', 'Total', 'Type'];
33

44
it('should display Example title', () => {

frameworks-plugins/angular-row-detail-plugin/.oxlintrc.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,6 @@
3737
}
3838
],
3939
"typescript/consistent-type-imports": "off",
40-
"import/extensions": [
41-
"off",
42-
"ignorePackages",
43-
{
44-
"js": "never",
45-
"ts": "never"
46-
}
47-
],
48-
"naming-convention": [
49-
"error",
50-
{
51-
"selector": "directive",
52-
"format": ["camelCase"],
53-
"prefix": ["app"]
54-
},
55-
{
56-
"selector": "component",
57-
"format": ["kebab-case"]
58-
}
59-
]
40+
"import/extensions": "off"
6041
}
6142
}

0 commit comments

Comments
 (0)