Skip to content

Commit

Permalink
fix: typo in config name for eslint and stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Mar 23, 2021
1 parent c7dedff commit 69310ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"selfsigned": "^1.10.8",
"style-loader": "^2.0.0",
"stylelint": "^13.12.0",
"stylelint-scss": "^3.19.0",
"stylelint-selector-bem-pattern": "^2.1.0",
"stylelint-webpack-plugin": "^2.1.1",
"table": "^6.0.7",
Expand Down
6 changes: 3 additions & 3 deletions src/linters/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function eslint({fix} = {}) {
const executable = config.get('eslint.bin');
const extensions = ['--ext .js'];
const fixFlag = fix ? '--fix' : '';
const eslintConfig = `--config ${config.get('eslint.config')}`;
const eslintConfig = `--config ${config.get('eslint.schema')}`;
const ignorePath = fs.existsSync(config.get('eslint.ignore'))
? `--ignore-path ${config.get('eslint.ignore')}`
: '';
Expand All @@ -30,7 +30,7 @@ module.exports.runEslint = function runEslint() {
try {
eslint();
} catch (error) {
console.log(chalk.red('ESLint errors found.'));
console.error(error)
}
};

Expand All @@ -39,6 +39,6 @@ module.exports.runEslintFix = function runEslintFix() {
try {
eslint({fix: true});
} catch (error) {
console.log(chalk.red('ESLint errors found.'));
console.error(error)
}
};
6 changes: 3 additions & 3 deletions src/linters/stylelint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function stylelint({fix} = {}) {
const executable = config.get('stylelint.bin');
const fixFlag = fix ? '--fix' : '';
const glob = `./**/*.{${['css', 'scss', 'sass'].join(',')}}`;
const stylelintConfig = `--config ${config.get('stylelint.config')}`;
const stylelintConfig = `--config ${config.get('stylelint.schema')}`;
const ignorePath = fs.existsSync(config.get('stylelint.ignore'))
? `--ignore-path ${config.get('stylelint.ignore')}`
: '';
Expand All @@ -32,7 +32,7 @@ module.exports.runStylelint = function runStylelint() {
try {
stylelint();
} catch (error) {
console.log(chalk.red('StyleLint errors found.'));
console.error(error)
}
};

Expand All @@ -41,6 +41,6 @@ module.exports.runStylelintFix = function runStylelintFix() {
try {
stylelint({fix: true});
} catch (error) {
console.log(chalk.red('StyleLint errors found.'));
console.error(error)
}
};
11 changes: 0 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10543,17 +10543,6 @@ style-search@^0.1.0:
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=

stylelint-scss@^3.19.0:
version "3.19.0"
resolved "https://registry.yarnpkg.com/stylelint-scss/-/stylelint-scss-3.19.0.tgz#528006d5a4c5a0f1f4d709b02fd3f626ed66d742"
integrity sha512-Ic5bsmpS4wVucOw44doC1Yi9f5qbeVL4wPFiEOaUElgsOuLEN6Ofn/krKI8BeNL2gAn53Zu+IcVV4E345r6rBw==
dependencies:
lodash "^4.17.15"
postcss-media-query-parser "^0.2.3"
postcss-resolve-nested-selector "^0.1.1"
postcss-selector-parser "^6.0.2"
postcss-value-parser "^4.1.0"

stylelint-selector-bem-pattern@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/stylelint-selector-bem-pattern/-/stylelint-selector-bem-pattern-2.1.0.tgz#3a78370ab67b777e571ef0fa2059428816f2d5e3"
Expand Down

0 comments on commit 69310ac

Please sign in to comment.