enforce a few eslint rules

This commit is contained in:
JFH
2021-05-13 01:00:09 +02:00
parent 9a5292b467
commit d3974f8f17
148 changed files with 1402 additions and 1398 deletions

View File

@@ -2,7 +2,7 @@
'use strict';
module.exports = {
plugins: ['plugins/markdown'],
plugins: [ 'plugins/markdown' ],
markdown: {
// tags: ['examples']
/*

View File

@@ -43,7 +43,7 @@ repository editor code
```js
svgEditor.setConfig({
dimensions: [320, 240],
dimensions: [ 320, 240 ],
canvas_expansion: 5,
initFill: {
color: '0000FF'
@@ -160,7 +160,7 @@ To add your own stylesheets along with the default stylesheets, ensure
`"@default"` is present in the array along with your own. For example:
```js
svgEditor.setConfig({stylesheets: ['@default', 'myStylesheet.css']});
svgEditor.setConfig({ stylesheets: [ '@default', 'myStylesheet.css' ] });
```
(In version 2.8, the CSS file `editor/custom.css` was included by default,

View File

@@ -79,7 +79,7 @@ export default {
init () {
return {
svgicons: 'extensions/helloworld-icon.xml',
buttons: [{ /* ... */ }],
buttons: [ { /* ... */ } ],
mouseDown () {
// ...
},
@@ -139,7 +139,7 @@ property should follow the format
naming conflicts in the non-modular version of SVGEdit.
```js
import {importSetGlobalDefault} from '../external/dynamic-import-polyfill/importModule.js';
import { importSetGlobalDefault } from '../external/dynamic-import-polyfill/importModule.js';
// ...

View File

@@ -119,7 +119,7 @@ these files). The default behavior is equivalent to this:
```js
svgEditor.setConfig({
stylesheets: ['@default', '../svgedit-custom.css']
stylesheets: [ '@default', '../svgedit-custom.css' ]
});
```