Skip to content

Commit

Permalink
feat: udpate lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fyangstudio committed Jul 28, 2021
1 parent 50b8df7 commit 8e6949d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
fail_ci_if_error: true

5 changes: 2 additions & 3 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { getESLintConfig } = require('@iceworks/spec');
const { getStylelintConfig } = require('@iceworks/spec');

// getESLintConfig(rule: 'rax'|'react'|'vue', customConfig?);
module.exports = getESLintConfig('react');
module.exports = getStylelintConfig('rax');
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import i18n from '../i18n';
export default function getHoverItem(tagName: string, source: string) {
const docInfos = getDocInfos();
const tagInfo = docInfos.find((info) => {
return info.label === tagName && info.source.npm === source
return info.label === tagName && info.source.npm === source;
});
if (tagInfo) {
const docsLink = new vscode.MarkdownString(
Expand Down
2 changes: 1 addition & 1 deletion extensions/material-helper/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function activate(context: vscode.ExtensionContext) {
createPagesTreeView(context);

importAutoComplete();
// help user complete React Component's propTypes;
// help user complete React Component's propTypes;
propTypesAutoComplete();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function getPropKeysFromCode(componentPath: string): string[] {
} catch (error) {
// ignore
}
console.log(propKeys)
console.log(propKeys);

return propKeys;
}
4 changes: 2 additions & 2 deletions packages/user-service/scripts/get-def-login-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ async function getDefLoginClient() {
accessKeySecret: ACCESS_KEY_SECRET,
timeout: '300s',
});

const target = 'packages/def-login-client.zip';

try {
const result = await ossClient.get(target);
const zipPath = path.join(__dirname, '..', 'tmp.zip');
Expand Down

0 comments on commit 8e6949d

Please sign in to comment.