forked from FokkeZB/J2M
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code has been modernized and linted. Tests for conversion to HTML is …
…now written. Fixed: Ordered and un-ordered list should have 3 spaces instead of 2. Converted code to ES6. Added JSDocs.
- Loading branch information
1 parent
7ccccb4
commit 3384bbc
Showing
15 changed files
with
6,514 additions
and
2,214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules/ | ||
test.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"env": { | ||
"browser": false, | ||
"node": true, | ||
"es6": true, | ||
"mocha": true | ||
}, | ||
"extends": ["airbnb-base", "plugin:prettier/recommended", "plugin:chai-friendly/recommended"], | ||
"plugins": ["prettier", "chai-friendly", "jsdoc"], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"no-underscore-dangle": "off", | ||
"class-methods-use-this": "off", | ||
"require-jsdoc": "error", | ||
"valid-jsdoc": "off", | ||
"global-require": "warn", | ||
"lines-between-class-members": "off", | ||
"jsdoc/check-alignment": 1, // Recommended | ||
"jsdoc/check-indentation": 1, | ||
"jsdoc/check-param-names": 1, // Recommended | ||
"jsdoc/check-syntax": 1, | ||
"jsdoc/check-tag-names": [ | ||
"warn", | ||
{ | ||
"definedTags": ["typicalname"] | ||
} | ||
], | ||
"jsdoc/check-types": 1, // Recommended | ||
"jsdoc/implements-on-classes": 1, // Recommended | ||
"jsdoc/match-description": 1, | ||
"jsdoc/newline-after-description": 1, // Recommended | ||
"jsdoc/require-description": 1, | ||
"jsdoc/require-hyphen-before-param-description": 1, | ||
"jsdoc/require-jsdoc": 1, // Recommended | ||
"jsdoc/require-param": 1, // Recommended | ||
"jsdoc/require-param-description": 1, // Recommended | ||
"jsdoc/require-param-name": 1, // Recommended | ||
"jsdoc/require-param-type": 1, // Recommended | ||
"jsdoc/require-returns": 1, // Recommended | ||
"jsdoc/require-returns-check": 1, // Recommended | ||
"jsdoc/require-returns-description": 1, // Recommended | ||
"jsdoc/require-returns-type": 1, // Recommended | ||
"jsdoc/valid-types": 1 // Recommended | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules/ | ||
test.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"printWidth": 120, | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"trailingComma": "es5", | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.