- [x] trailing comma in objects ```js { "a": "35", } ``` - [x] support for one-line comments - [x] support for multiline comments - [x] support for `export default` and `module.exports = ` ```js // data.d.mjs export default ... ``` ```js // data.d.cjs module.exports = ... ``` - [x] support for identifiers in an object ```js { a: false } ``` - [x] support for `const` ```js const a = { a: false } export default [a, a] ``` - [ ] support for BigInt `123n` - [x] support for exporting a module ```js // b.d.mjs import a from 'a.d.mjs' ``` ```js // a.d.cjs const a = require('a.d.cjs') ``` - [x] #96 - [x] cycles - [ ] asynchronous parser (state) - [x] a parser should return a type of the file: - `.json`, JSON - `.d.mjs`, data ES module - `.d.cjs`, data CommonJs module - [x] #97 ## FunctionsScript - [ ] support for expressions - [ ] support for functions - [ ] a parser may return these additional types of the file: - `.f.mjs`, FunctionalScript ES module - `.f.cjs`, FunctionalScript CommonJS module
export defaultandmodule.exports =const123n.json, JSON.d.mjs, data ES module.d.cjs, data CommonJs moduleFunctionsScript
.f.mjs, FunctionalScript ES module.f.cjs, FunctionalScript CommonJS module