- Linting (Markdown): Fix linting format

- Linting (HTML): Add linting file
master
Brett Zamir 2018-10-19 15:19:18 +08:00
parent 6617110d76
commit 253732025a
5 changed files with 882 additions and 8 deletions

3
.htmlhintrc Normal file
View File

@ -0,0 +1,3 @@
{
"title-require": false
}

View File

@ -1,10 +1,5 @@
{
"plugins": {
"lint": {
"ordered-list-marker-value": "one",
"no-missing-blank-lines": false,
"list-item-spacing": false,
"list-item-indent": false
}
"lint-ordered-list-marker-value": "one"
}
}

View File

@ -3,9 +3,9 @@
1. Ensure tests are passing via `npm test`. This will lint and build
files and run `/test/all_tests.html`.
2. Spot check extensions (until we have tests). The following URL includes all:
1. Spot check extensions (until we have tests). The following URL includes all:
http://localhost:8000/editor/svg-editor-es.html?extensions=ext-arrows.js,ext-closepath.js,ext-connector.js,ext-eyedropper.js,ext-foreignobject.js,ext-grid.js,ext-helloworld.js,ext-imagelib.js,ext-markers.js,ext-mathjax.js,ext-overview_window.js,ext-panning.js,ext-php_savefile.js,ext-polygon.js,ext-server_moinsave.js,ext-server_opensave.js,ext-shapes.js,ext-star.js,ext-storage.js,ext-webappfind.js,ext-xdomain-messaging.js
3. Ensure both the ES6 Modules HTML file (`svg-editor-es.html`) and
1. Ensure both the ES6 Modules HTML file (`svg-editor-es.html`) and
regular file (`svg-editor.html`) are working.

873
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,7 @@
"build-html": "node build-html.js",
"compress-images": "imageoptim 'chrome-app/*.png' && imageoptim 'editor/extensions/*.png' && imageoptim 'editor/spinbtn/*.png' && imageoptim 'editor/jgraduate/images/*.{png,gif}' && imageoptim 'editor/images/*.png'",
"copy-deps": "cp node_modules/load-stylesheets/dist/index-es.js editor/external/load-stylesheets/index-es.js && cp node_modules/@babel/polyfill/dist/polyfill.min.js editor/external/@babel/polyfill/polyfill.min.js && cp node_modules/@babel/polyfill/dist/polyfill.js editor/external/@babel/polyfill/polyfill.js && cp node_modules/jamilih/dist/jml-es.js editor/external/jamilih/jml-es.js && cp node_modules/query-result/esm/index.js editor/external/query-result/esm/index.js && cp node_modules/qr-manipulation/dist/index-es.js editor/external/qr-manipulation/dist/index-es.js",
"remark": "remark -q -f .",
"eslint": "eslint .",
"rollup": "rollup -c",
"start-embedded": "echo \"Open file to http://localhost:8000/editor/embedapi.html\" && static -p 8000 | static -p 8001 -H '{\"Access-Control-Allow-Origin\": \"*\"}'",
@ -78,6 +79,8 @@
"qr-manipulation": "https://github.com/brettz9/qr-manipulation",
"query-result": "https://github.com/WebReflection/query-result",
"qunit": "^2.6.2",
"remark-cli": "^5.0.0",
"remark-lint-ordered-list-marker-value": "^1.0.2",
"rollup": "0.66.2",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.1.8",