Steps to reproduce:
mkdir temp && cd temp && npm init -y
npm i -D xo typescript
a.ts
:export type T = {
[key: string]: number;
};
npx xo
@typescript-eslint/consistent-indexed-object-style
is reported as expectedoverrides
option in package.json
:{
"xo": {
"rules": {
"no-await-in-loop": "off"
},
"overrides": {
"files": "**/*.ts",
"rules": {
"@typescript-eslint/consistent-indexed-object-style": "off"
}
}
}
}
npx xo
@typescript-eslint/consistent-indexed-object-style
is still reported."@typescript-eslint/consistent-indexed-object-style": "off"
setting outside the "overrides"
option:{
"xo": {
"rules": {
"no-await-in-loop": "off",
"@typescript-eslint/consistent-indexed-object-style": "off"
}
}
}
... Now it works as is should... But why doesn't it work within the "overrides"
option?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too