-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test files create parser issue #15
Comments
|
As xo also includes rules for Ava I would assume it works out of the box with ava tests. Which is the purpose of xo: work with as little config as possible. |
This comment has been minimized.
This comment has been minimized.
The solution suggested in typescript-eslint/typescript-eslint#890 seems to work: // tsconfig.xo.json
{
"extends": "@sindresorhus/tsconfig",
"files": [
"index.ts",
"index.test-d.ts"
]
} // package.json
{
"xo": {
"extensions": [
"ts"
],
"extends": "xo-typescript",
"parserOptions": {
"project": "./tsconfig.xo.json"
}
}
} Edit: none of this config is needed anymore in XO 0.28.3! 🤩 |
@fregante This is not an XO issue. The problem is in TypeScript-ESLint. I'm happy to consider ways for XO to simplify this though. |
Yeah this is an annoying requirements of ts-eslint.
XO could:
I don't know of a better solution to the problem in the first place |
As one example of many (one per file within
test/
):The text was updated successfully, but these errors were encountered: