enforce a few eslint rules
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
plugins: ['plugins/markdown'],
|
||||
plugins: [ 'plugins/markdown' ],
|
||||
markdown: {
|
||||
// tags: ['examples']
|
||||
/*
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
// ...
|
||||
|
||||
|
||||
@@ -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' ]
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user