Skip to content
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

Can’t override sourceType for a .ts file #556

Closed
andersk opened this issue Jun 2, 2021 · 0 comments · Fixed by #557
Closed

Can’t override sourceType for a .ts file #556

andersk opened this issue Jun 2, 2021 · 0 comments · Fixed by #557

Comments

@andersk
Copy link
Contributor

andersk commented Jun 2, 2021

#544 fixed "sourceType": "script" for a .js file, but not for a .ts file:

{
  "dependencies": {
    "xo": "^0.40.1"
  },
  "xo": {
    "parserOptions": {
      "sourceType": "script"
    }
  }
}
$ xo --print-config foo.js | grep sourceType
		"sourceType": "script",
$ xo --print-config foo.ts | grep sourceType
		"sourceType": "module",

(Worked in 0.39, with "script" or "module".)

andersk added a commit to andersk/xo that referenced this issue Jun 2, 2021
Fixes xojs#556.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant