Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Recommended settings set sourceType to module #118

Closed
Labels
enhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@marekdedic

Description

@marekdedic

Theplugin:@typescript-eslint/recommended config sets

"parserOptions": {"sourceType":"module"}

Might I ask why override the eslint default? I've stumbled upon this while trying to find out whyno-unused-vars was throwing false positives for functions exported with/* exported fnName */ - given this override in the recommended config, it makes sense of course, but I had to go through all the settings to find out why it works fine if I enable only the rule and throws false positives if I extend the whole recommended config...

I get that modules are The Right Way™ now, but not everybody uses them - overriding the eslint default seems like a poor choice to me, because it silently changes the behaviour of eslint without the user knowing why if they don't actually go into the recommended config file.

Versions

packageversion
@typescript-eslint/eslint-plugin1.0.0
@typescript-eslint/parser1.0.0
TypeScript3.2.4
ESLint5.12.1
node11.7.0
npm6.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp