Skip to content

lint:fix npm run lint error🚦 #6896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
jasmine: true,
jest: true,
es6: true,
'vue/setup-compiler-macros': true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
Expand Down
4 changes: 2 additions & 2 deletions components/input/demo/password-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Input type of password.
<a-space direction="vertical" size="middle" style="width: 100%">
<a-input-password v-model:value="value" placeholder="input password" />
<a-input-password v-model:value="value2" placeholder="input password">
<template #iconRender="visible">
<EyeTwoTone v-if="visible"></EyeTwoTone>
<template #iconRender="visible1">
<EyeTwoTone v-if="visible1"></EyeTwoTone>
<EyeInvisibleOutlined v-else></EyeInvisibleOutlined>
</template>
</a-input-password>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"lint:components": "eslint --fix --ext .jsx,.js,.ts,.tsx ./components",
"lint:demo": "eslint --fix components/*/demo/*.vue",
"lint:md": "eslint --fix *.md",
"lint:script": "eslint . --ext '.js,.jsx,.ts,.tsx'",
"lint:script": "eslint . --ext '.js,.jsx,.ts,.tsx' --no-error-on-unmatched-pattern",
"lint:site": "eslint -c ./.eslintrc.js --fix --ext .jsx,.js,.ts,.tsx,vue ./site",
"lint:style": "stylelint \"{site,components}/**/*.less\" --syntax less",
"codecov": "codecov",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const Demo = defineComponent({
setup() {
return () => {
const onClick: MenuProps['onClick'] = e => {
// eslint-disable-next-line
console.log('click ', e);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const items: MenuProps['items'] = [

const Demo = () => {
const onClick: MenuProps['onClick'] = e => {
// eslint-disable-next-line
console.log('click ', e);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const Demo = defineComponent({
</div>
),
onOk() {
// eslint-disable-next-line
console.log('i am ok');
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { ComponentDemo } from '../../interface';
import options from './data';

const handleChange = (value: any) => {
// eslint-disable-next-line
console.log(`selected ${value}`);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { ComponentDemo } from '../../interface';
import options from './data';

const handleChange = (value: any) => {
// eslint-disable-next-line
console.log(`selected ${value}`);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { ComponentDemo } from '../../interface';
import options from './data';

const handleChange = (value: any) => {
// eslint-disable-next-line
console.log(`selected ${value}`);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { ComponentDemo } from '../../interface';
import options from './data';

const handleChange = (value: any) => {
// eslint-disable-next-line
console.log(`selected ${value}`);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const data = [
];

const onChange: TableProps<TableData>['onChange'] = (pagination, filters, sorter, extra) => {
// eslint-disable-next-line
console.log('params', pagination, filters, sorter, extra);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const ColorInput = defineComponent({
},
setup(props, { attrs }) {
const { color } = toRefs(props);
//eslint-disable-next-line
const { escape, validate, format, process } = props;

const value = ref(escape(color.value));
Expand Down
2 changes: 1 addition & 1 deletion site/src/layouts/Demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<slot />
<!-- <GoogleAds v-if="showAd" :key="`goo-${route.path}`" /> -->
<section class="markdown api-container" v-html="api"></section>
<Contributor :isZn="isZhCN" />
<Contributor :is-zn="isZhCN" />
</article>
</template>
<script lang="ts">
Expand Down