What version of Oxlint are you using?
1.1.0
What command did you run?
oxlint
What does your .oxlintrc.json config file look like?
What happened?
no-unassigned-import doesn't let an import occur without assigning to something.
Which makes sense for JS/TS/JSON etc files, but for CSS, this isn't the case.
When importing CSS files, vite will put them into a compiled stylesheet.
But oxlint is picking them up with the no-unassigned-import rule
× eslint-plugin-import(no-unassigned-import): Imported module should be assigned
╭─[src/main.ts:1:1]
1 │ import './reset.css'
· ────────────────────
2 │ import './global.css'
╰────
help: Consider assigning the import to a variable or removing it if it's unused.
{ "$schema": "./node_modules/oxlint/configuration_schema.json", "ignorePatterns": ["/node_modules", "/dist"], "plugins": ["eslint", "oxc", "typescript", "import", "promise", "unicorn"], "categories": { "correctness": "error", "suspicious": "error", "perf": "error" }, "env": { "builtin": true, "browser": true } }