Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.03 KB

CONTRIBUTING.md

File metadata and controls

22 lines (17 loc) · 1.03 KB

Contributing Code

Please sign the jQuery Foundation Contributor License Agreement

Full Documentation

Our full contribution guidelines can be found at: http://eslint.org/docs/developer-guide/contributing/

How to upgrade acorn to support new syntax

  1. npm install acorn@latest
  2. If a new ecmaVersion value is added, update SUPPORTED_VERSIONS constant in lib/options.js and tests in tests/lib/supported-ecmaversions.js.
  3. If new token types are added, update lib/token-translator.js file to translate the tokens.
  4. 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.
  5. Update README.md.
  6. Send a pull request.