Skip to content

Commit

Permalink
Update config schema to match readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdoe committed Jun 11, 2018
1 parent 0df4d9b commit bfc0cfc
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,46 @@ const scope = ['source.js', 'source.js.jsx', 'source.js.jquery', 'source.gfm', '
export const config = {
style: {
type: 'string',
title: 'Default style',
description: 'Default global style when none is installed locally.',
default: styleSettings.defaultStyle,
enum: styleSettings.styleOptions
enum: styleSettings.styleOptions,
order: 1
},
checkStyleDevDependencies: {
type: 'boolean',
title: 'Check for standard',
description: 'Only run if standard, semistandard or happiness present in package.json `devDependencies`',
default: false
},
checkForEslintConfig: {
type: 'boolean',
title: 'Disable if the project uses ESLint',
description: 'Do not run if the project has configured ESLint',
default: true
title: 'Only lint if installed locally',
description: 'Only lint if `standard` (or one of the other styles) is installed as a dependency.',
default: false,
order: 2
},
showEslintRules: {
type: 'boolean',
title: 'Show ESLint Rules',
description: 'Show the ESLint rule name on error/warning\'s message',
default: false
title: 'Show ESLint rule ID',
description: 'Show ESLint’s rule ID in the message description.',
default: false,
order: 3
},
lintMarkdownFiles: {
checkForEslintConfig: {
type: 'boolean',
description: 'Lint markdown fenced code blocks',
default: false
title: 'Skip if ESLint is installed locally',
description: 'Skip linting if ESLint is installed locally.',
default: true,
order: 4
},
lintHtmlFiles: {
type: 'boolean',
title: 'Lint HTML Files',
description: 'Lint HTML-embedded script blocks',
default: false
title: 'Lint HTML documents',
description: 'Lint JavaScript code within `<script>` tags in HTML documents.',
default: false,
order: 5
},
lintMarkdownFiles: {
type: 'boolean',
title: 'Lint Markdown documents',
description: 'Lint JavaScript code blocks within Markdown documents.',
default: false,
order: 6
}
}

Expand Down

0 comments on commit bfc0cfc

Please sign in to comment.