Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaowei Xue committed Aug 23, 2023
1 parent a29ee85 commit a992d35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/cnp-lint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# cnp-lint

## 2.1.3

### Patch Changes

- fix typo

## 2.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cnp-lint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cnp-lint",
"version": "2.1.2",
"version": "2.1.3",
"description": "A cli that helps to create set up lint for front end git repo easily",
"type": "module",
"main": "./dist/mjs/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/cnp-lint/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ export const createStylelintConfig = async (
configs: StylelintConfigValue[]
) => {
const isModule = (await getPackageJsonField('type')).trimEnd() === 'module';
const fileName = isModule ? '.stylelintrc.js' : '.eslintrc.cjs';
const fileName = isModule ? '.stylelintrc.js' : '.stylelintrc.cjs';
const stylelintConfigs = ["'stylelint-config-cnp'"];
configs.map(k => {
stylelintConfigs.push(`'stylelint-config-cnp/${k}`);
stylelintConfigs.push(`'stylelint-config-cnp/${k}'`);
return k;
});
const content = `module.exports = {
Expand Down

0 comments on commit a992d35

Please sign in to comment.