ember-eslint-parser

0.5.9 • Public • Published

ember-eslint-parser

This is the eslint parser for ember's gjs and gts files (using <template>).

It is meant to be used with eslint-plugin-ember, which provides nice defaults for all the different file types in ember projects.

It's recommended to only use overrides when defining your eslint config, so using this parser would look like this:

    {
      files: ['**/*.gjs'],
      parser: 'ember-eslint-parser',
      plugins: ['ember'],
      extends: [
        'eslint:recommended',
        'plugin:ember/recommended',
        'plugin:ember/recommended-gjs',
      ],
    },
    {
      files: ['**/*.gts'],
      parser: 'ember-eslint-parser',
      plugins: ['ember'],
      extends: [
        'eslint:recommended',
        'plugin:ember/recommended',
        'plugin:ember/recommended-gts',
      ],
    },

if we detect a typescript parser, it will also be used for all files, otherwise babel parser will be used. If we cannot find a typescript parser when linting gts we throw an error.

Support

eslint-plugin-ember is the primary consumer of this parser library, so SemVer may not be respected for other consumers.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.957,142latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.957,142
0.5.8884
0.5.73,944
0.5.6302
0.5.517
0.5.4416
0.5.31,300
0.5.21,100
0.5.12
0.5.0299
0.4.32,899
0.4.2429
0.4.114
0.4.09
0.3.8790
0.3.784
0.3.60
0.3.50
0.3.40
0.3.30
0.3.2134
0.3.10
0.3.00
0.2.6245
0.2.571
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.11
0.1.00
0.0.10

Package Sidebar

Install

npm i ember-eslint-parser

Weekly Downloads

70,082

Version

0.5.9

License

ISC

Unpacked Size

35.1 kB

Total Files

7

Last publish

Collaborators

  • nullvoxpopuli