TS rules should only apply to .ts and .vue files with <script lang="ts"> in mixed codebase #1835
8000
Labels
package: parser
Issues related to @typescript-eslint/parser
working as intended
Issues that are closed as they are working as intended
Repro
Additional Info
If I get rid of overrides object and enable
explicit-function-return-type
under the default rules object that rule will run on all .vue files regardless if it's<script lang="ts">
or<script lang="js">
. Everything works as it should if the file extension is .ts.Expected Result
Should show error for .vue files that have
<script lang="ts">
and no return type explicitly defined.Actual Result
Does not show error for .vue files that have
<script lang="ts">
with no return type explicitly defined.Versions
@typescript-eslint/parser
^2.19.0
TypeScript
^3.7.3
ESLint
^6.7.2
node
8.16.2
npm
6.4.1
The text was updated successfully, but these errors were encountered: