Skip to content

[js] update jsconfig.json to latest tsconfig.json schema #2898

Closed

Description

@egamma

Extracted from #2848

The current schema doesn't support "es6"

            "module": {
              "description": "Specify module code generation: 'CommonJS', 'Amd', 'System', 'UMD', 'es6', or 'es2015'.",
              "enum": [ "commonjs", "amd", "umd", "system", "es6", "es2015" ]
            },

Activity

  1. added
    bug
    on Feb 10, 2016
  2. added this to the Feb 2016 milestone on Feb 10, 2016
  3. prashaantt commented on Feb 11, 2016

    @prashaantt

    The December release made the jsconfig.json no longer necessary for JS in general, and ES6 in particular. I'm curious if that's still going to be the case, especially in view of #2848 that seemed to depend on it to work correctly.

  4. egamma commented on Feb 11, 2016

    @egamma
    MemberAuthor

    The December release made the jsconfig.json no longer necessary for JS in general, and ES6 in particular.

    This is not fully correct. The December release no longer required you to create a jsconfig.json when you only wanted to configure the target to es6. You still need to define a jsconfig.json to define another module system than the default of when you want to exclude directories (e.g. the node_modules folder) from the project. Something you almost always should do for a larger project.

  5. prashaantt commented on Feb 12, 2016

    @prashaantt

    Yes, thanks for clarifying. But the linked issue wasn't an issue earlier and it was possible to use ES6 import statements in the previous release without the jsconfig file.

  6. prashaantt commented on Feb 18, 2016

    @prashaantt

    I just discovered that IntelliSense for typings works only when the module is set to system. What is this system module and is this the right behaviour?

  7. changed the title [-]update jsconfig.json to latest tsconfig.json schema[/-] [+][json] update jsconfig.json to latest tsconfig.json schema[/+] on Feb 23, 2016
  8. added
    json
    javascript
    and removed
    json
    on Feb 23, 2016
  9. changed the title [-][json] update jsconfig.json to latest tsconfig.json schema[/-] [+][js] update jsconfig.json to latest tsconfig.json schema[/+] on Feb 23, 2016
  10. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugjavascriptverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions