wcjohnson / lightscript

A futuristic fork of the LightScript language.
http://wcjohnson.github.io/lightscript
7 stars 0 forks source link

ESLint plugin redesign #85

Closed wcjohnson closed 6 years ago

wcjohnson commented 6 years ago

ESLint has greatly expanded its extensibility, opening up the possibility of implementing LightScript linting on a purely plug-in basis without hacks.

See:

https://eslint.org/docs/developer-guide/working-with-custom-parsers

At minimum we would probably have to fork eslint-scope and update it to handle LightScript scopes. LightScript node types can also be registered for traversal.

wcjohnson commented 6 years ago

This has been done in 4.0 with astonishing success. Already available on NPM under @lightscript/eslint-plugin