Please sign the jQuery Foundation Contributor License Agreement
Our full contribution guidelines can be found at: http://eslint.org/docs/developer-guide/contributing/
npm install acorn@latest
- If a new
ecmaVersion
value is added, updateSUPPORTED_VERSIONS
constant inlib/options.js
and tests intests/lib/supported-ecmaversions.js
. - If new token types are added, update
lib/token-translator.js
file to translate the tokens. - Add tests in
tests/fixtures/ecma-version/<ecma-vesion>/
.- Add a directory named the new syntax name.
- Add
valid-<test-case-name>.src.js
files for parseable codes. - Add
invalid-<test-case-name>.src.js
files for syntax error codes. - Run
node tools/update-ecma-version-tests.js <ecma-vesion>
command to generate<name>.result.js
files. - Check the
<name>.result.js
files are expected results.
- Update
README.md
. - Send a pull request.