build: update eslint rules

This commit is contained in:
Qiuxia Fan 2022-01-04 16:01:53 +08:00
parent 51932ca877
commit e1d5095d75
3 changed files with 5 additions and 59 deletions

View File

@ -76,15 +76,7 @@
"ecmaVersion": 2020 "ecmaVersion": 2020
}, },
"rules": { "rules": {
"@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-explicit-any": "off"
"vue/attributes-order": "off",
"vue/one-component-per-file": "off",
"vue/html-closing-bracket-newline": "off",
"vue/max-attributes-per-line": "off",
"vue/multiline-html-element-content-newline": "off",
"vue/singleline-html-element-content-newline": "off",
"vue/attribute-hyphenation": "off",
"vue/require-default-prop": "off"
}, },
"overrides": [ "overrides": [
{ {

View File

@ -13,9 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<el-table :data="tableData" style="width: 100%"> <el-table :data="data" style="width: 100%">
<el-table-column prop="date" label="Date" width="180" /> <el-table-column prop="label" label="Endpoints" />
<el-table-column prop="name" label="Name" width="180" />
</el-table> </el-table>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -30,26 +29,4 @@ defineProps({
}, },
theme: { type: String, default: "" }, theme: { type: String, default: "" },
}); });
const tableData = [
{
date: "2016-05-03",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
{
date: "2016-05-02",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
{
date: "2016-05-04",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
{
date: "2016-05-01",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
];
</script> </script>

View File

@ -13,9 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<el-table :data="tableData" style="width: 100%"> <el-table :data="data" style="width: 100%">
<el-table-column prop="date" label="Date" width="180" /> <el-table-column prop="label" label="Service Instances" />
<el-table-column prop="name" label="Name" width="180" />
</el-table> </el-table>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -30,26 +29,4 @@ defineProps({
}, },
theme: { type: String, default: "" }, theme: { type: String, default: "" },
}); });
const tableData = [
{
date: "2016-05-03",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
{
date: "2016-05-02",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
{
date: "2016-05-04",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
{
date: "2016-05-01",
name: "Tom",
address: "No. 189, Grove St, Los Angeles",
},
];
</script> </script>