You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
* New: Automatically generate TS-specific nodes (fixes#41)
* Fix no use before define, changed typescript src files to .ts for better development experience (#42)
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# TypeScript ESLint Parser (Experimental)
2
2
3
-
An parser that converts TypeScript into an [ESTree](https://github.com/estree/estree)-compatible form so it can be used in ESLint.
3
+
A parser that converts TypeScript into an [ESTree](https://github.com/estree/estree)-compatible form so it can be used in ESLint. The goal is to allow TypeScript files to be parsed by ESLint (though not necessarily pass all ESLint rules).
4
4
5
5
**Important:** This parser is still in the very early stages and is considered experimental. There are likely a lot of bugs. You should not rely on this in a production environment yet.
6
6
@@ -22,23 +22,25 @@ And in your ESLint configuration file:
22
22
23
23
If you're familiar with TypeScript and ESLint, and you'd like to see this project progress, please consider contributing. We need people with a good knowledge of TypeScript to ensure this parser is useful.
24
24
25
+
## Reporting Bugs
26
+
27
+
**Do not** file bugs about ESLint rule failures. This is expected because ESLint doesn't know anything about TypeScript syntax. It's likely that many ESLint rules will have failures as a result. Longer-term, it's likely we'll need to create a custom set of ESLint rules that are TypeScript-specific.
28
+
29
+
Bugs should be filed for:
30
+
31
+
1. TypeScript syntax that fails to parse.
32
+
1. TypeScript syntax that produces an unexpected AST.
33
+
25
34
## Contributing
26
35
27
36
Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/typescript-eslint-parser/issues).
28
37
29
-
TypeScript ESLint Parser is licensed under a permissive BSD 2-clause license.
30
-
31
38
## Build Commands
32
39
33
40
*`npm test` - run all linting and tests
34
41
*`npm run lint` - run all linting
35
42
36
-
## Development Plan
43
+
## License
37
44
38
-
***Phase 1:** Full ES6 support, stripping out all TypeScript-specific syntax.
39
-
***Phase 2:** Add JSX support.
40
-
***Phase 3:** Add support for attaching comments.
41
-
***Phase 4:** Add support for types.
42
-
***Phase 5:** Add support for top-level TypeScript syntax.
45
+
TypeScript ESLint Parser is licensed under a permissive BSD 2-clause license.
43
46
44
-
The high-level goal is to have output that matches Espree v3.x.
0 commit comments