@bchteam/eslint-config
Advanced tools
Comparing version 3.0.0-beta2 to 3.0.0-beta3
{ | ||
"name": "@bchteam/eslint-config", | ||
"version": "3.0.0-beta2", | ||
"version": "3.0.0-beta3", | ||
"description": "ESLint and Stylelint configs for Black Wall projects", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -108,3 +108,5 @@ const path = require('path') | ||
const lintJsScriptPart = '--ext .vue' | ||
const lintStyleScriptPart = './**/*.vue' | ||
// The quotation marks around the glob are important because they will allow stylelint to interpret the glob, using globby, instead of your shell. | ||
// https://github.com/stylelint/stylelint/blob/master/docs/user-guide/cli.md#recursively-linting-a-directory | ||
const lintStyleScriptPart = '"./**/*.vue"' | ||
if (include) { | ||
@@ -123,3 +125,5 @@ addToScript(pkgJson, 'lint:js', lintJsScriptPart, feature) | ||
if (include) { | ||
addScript(pkgJson, 'lint:style', 'stylelint ./**/*.css ./**/*.html', remove) | ||
// The quotation marks around the glob are important because they will allow stylelint to interpret the glob, using globby, instead of your shell. | ||
// https://github.com/stylelint/stylelint/blob/master/docs/user-guide/cli.md#recursively-linting-a-directory | ||
addScript(pkgJson, 'lint:style', 'stylelint "./**/*.css" "./**/*.html"', remove) | ||
addScript(pkgJson, 'lint:style-fix', 'npm run lint:style -- --fix', remove) | ||
@@ -137,3 +141,5 @@ addToScript(pkgJson, 'lint', simpleScriptPart, feature, true) | ||
case Feature.SCSS: | ||
scriptPart = './**/*.scss ./**/*.sass' | ||
// The quotation marks around the glob are important because they will allow stylelint to interpret the glob, using globby, instead of your shell. | ||
// https://github.com/stylelint/stylelint/blob/master/docs/user-guide/cli.md#recursively-linting-a-directory | ||
scriptPart = '"./**/*.scss" "./**/*.sass"' | ||
if (include) | ||
@@ -140,0 +146,0 @@ addToScript(pkgJson, 'lint:style', scriptPart, feature) |
27823
723