Skip to content

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

Notifications You must be signed in to change notification settings

ember-tooling/ember-eslint-parser

Folders and files

NameName
Last commit message
Last commit date
Jan 30, 2025
Nov 21, 2024
Jan 28, 2025
Jan 30, 2025
Nov 22, 2024
Dec 28, 2023
Jan 29, 2024
Dec 11, 2023
Dec 28, 2023
Dec 18, 2023
Jan 28, 2025
Jan 28, 2025
Feb 15, 2024
Nov 22, 2024
Jan 30, 2025
Jan 7, 2025
Jan 30, 2024

Repository files navigation

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.