Skip to content
Merged
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
13 changes: 12 additions & 1 deletion apps/oxlint/test/fixtures/options/.oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,16 @@
}
],
"options-plugin/default-options": "error"
}
},
"overrides": [
{
"files": ["files/nested/**"],
"rules": {
"options-plugin/options": [
"error",
{"somethingElse": true}
]
}
}
]
}
1 change: 1 addition & 0 deletions apps/oxlint/test/fixtures/options/files/nested/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let x;
55 changes: 53 additions & 2 deletions apps/oxlint/test/fixtures/options/output.snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,59 @@
: ^
`----

Found 0 warnings and 3 errors.
Finished in Xms on 1 file using X threads.
x options-plugin(default-options):
| options: [
| "string",
| 123,
| true,
| {
| "toBe": false,
| "notToBe": true
| },
| {
| "deep": [
| {
| "deeper": {
| "evenDeeper": [
| {
| "soDeep": {
| "soSoDeep": true
| }
| }
| ]
| }
| }
| ]
| }
| ]
| isDeepFrozen: true
,-[files/nested/index.js:1:1]
1 | let x;
: ^
`----

x options-plugin(no-options):
| options: []
| isDeepFrozen: true
,-[files/nested/index.js:1:1]
1 | let x;
: ^
`----

x options-plugin(options):
| options: [
| {
| "somethingElse": true
| }
| ]
| isDeepFrozen: true
,-[files/nested/index.js:1:1]
1 | let x;
: ^
`----

Found 0 warnings and 6 errors.
Finished in Xms on 2 files using X threads.
```

# stderr
Expand Down
Loading