Browse Source

lint: remove key spacing

pull/979/head
Vitaly Puzrin 2 years ago
parent
commit
9f5e9c6069
  1. 1
      .eslintrc.yml
  2. 22
      lib/presets/commonmark.mjs
  3. 23
      lib/presets/default.mjs
  4. 22
      lib/presets/zero.mjs
  5. 23
      support/demo_template/index.mjs

1
.eslintrc.yml

@ -19,5 +19,4 @@ ignorePatterns:
rules: rules:
camelcase: 0 camelcase: 0
key-spacing: 0
no-multi-spaces: 0 no-multi-spaces: 0

22
lib/presets/commonmark.mjs

@ -2,11 +2,20 @@
export default { export default {
options: { options: {
html: true, // Enable HTML tags in source // Enable HTML tags in source
xhtmlOut: true, // Use '/' to close single tags (<br />) html: true,
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks // Use '/' to close single tags (<br />)
linkify: false, // autoconvert URL-like texts to links xhtmlOut: true,
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: false,
// Enable some language-neutral replacements + quotes beautification // Enable some language-neutral replacements + quotes beautification
typographer: false, typographer: false,
@ -26,7 +35,8 @@ export default {
// //
highlight: null, highlight: null,
maxNesting: 20 // Internal protection, recursion limit // Internal protection, recursion limit
maxNesting: 20
}, },
components: { components: {

23
lib/presets/default.mjs

@ -2,11 +2,20 @@
export default { export default {
options: { options: {
html: false, // Enable HTML tags in source // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />) html: false,
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks // Use '/' to close single tags (<br />)
linkify: false, // autoconvert URL-like texts to links xhtmlOut: false,
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: false,
// Enable some language-neutral replacements + quotes beautification // Enable some language-neutral replacements + quotes beautification
typographer: false, typographer: false,
@ -26,11 +35,11 @@ export default {
// //
highlight: null, highlight: null,
maxNesting: 100 // Internal protection, recursion limit // Internal protection, recursion limit
maxNesting: 100
}, },
components: { components: {
core: {}, core: {},
block: {}, block: {},
inline: {} inline: {}

22
lib/presets/zero.mjs

@ -3,11 +3,20 @@
export default { export default {
options: { options: {
html: false, // Enable HTML tags in source // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />) html: false,
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks // Use '/' to close single tags (<br />)
linkify: false, // autoconvert URL-like texts to links xhtmlOut: false,
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: false,
// Enable some language-neutral replacements + quotes beautification // Enable some language-neutral replacements + quotes beautification
typographer: false, typographer: false,
@ -27,7 +36,8 @@ export default {
// //
highlight: null, highlight: null,
maxNesting: 20 // Internal protection, recursion limit // Internal protection, recursion limit
maxNesting: 20
}, },
components: { components: {

23
support/demo_template/index.mjs

@ -18,12 +18,23 @@ import md_sup from 'markdown-it-sup'
let mdHtml, mdSrc, permalink, scrollMap let mdHtml, mdSrc, permalink, scrollMap
const defaults = { const defaults = {
html: false, // Enable HTML tags in source // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />) html: false,
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks // Use '/' to close single tags (<br />)
linkify: true, // autoconvert URL-like texts to links xhtmlOut: false,
typographer: true, // Enable smartypants and other sweet transforms
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: true,
// Enable smartypants and other sweet transforms
typographer: true,
// options below are for demo only // options below are for demo only
_highlight: true, _highlight: true,

Loading…
Cancel
Save