-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from NullVoxPopuli/fillout-readme
Add light README
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
# 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](https://github.com/ember-cli/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: | ||
```js | ||
{ | ||
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', | ||
], | ||
}, | ||
``` | ||
|
||
## Support | ||
|
||
eslint-plugin-ember is the primary consumer of this parser library, so SemVer _may_ not be respected for other consumers. |