Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x]
node-version: [25.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -29,5 +29,5 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run lint:no-fix
- run: npm run lint-no-fix
- run: npm run test:unit
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ coverage
# Production secrets
.env.production
.env.staging

.eslintcache
14 changes: 14 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "vue"],
"env": {
"browser": true
},
"categories": {
"correctness": "error"
},
"rules": {
"no-useless-spread": "off",
"@typescript-eslint/no-unused-expressions": "off",
}
}
1 change: 0 additions & 1 deletion cypress/e2e/basic.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe("Basic test", () => {
cy.get("#base-frequency").type("432")
cy.get("#base-frequency").trigger("change")
cy.get("#base-frequency").should("have.value", "432");
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(400); // Wait for debounce to expire.
cy.get("a").contains("Synth").click();
cy.get("a").contains("Build Scale").click();
Expand Down
43 changes: 43 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { globalIgnores } from 'eslint/config'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
import pluginVue from 'eslint-plugin-vue'
import pluginVitest from '@vitest/eslint-plugin'
import pluginOxlint from 'eslint-plugin-oxlint'
import skipFormatting from 'eslint-config-prettier/flat'

// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
// import { configureVueProject } from '@vue/eslint-config-typescript'
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup

export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{vue,ts,mts,tsx}'],
},

globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),

...pluginVue.configs['flat/essential'],
vueTsConfigs.recommended,

{
...pluginVitest.configs.recommended,
files: ['src/**/__tests__/*'],
},

{
name: 'app/legacy-compatibility',
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'vitest/no-conditional-expect': 'off',
},
},

...pluginOxlint.buildFromOxlintConfigFile('.oxlintrc.json'),

skipFormatting,
)
Loading
Loading