Skip to content

Commit

Permalink
chore: add eslint rules for spacing (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haythamasalama authored Aug 11, 2023
1 parent e9b23ad commit 20556d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ module.exports = {
'key-spacing': ['error', { beforeColon: false, afterColon: true, mode: 'strict' }],
'space-before-blocks': ['error', 'always'],
'space-infix-ops': ['error', { int32Hint: false }],
'no-multi-spaces': ['error', { ignoreEOLComments: true }],

// Typescript
'@typescript-eslint/type-annotation-spacing': 'error',

// Vuejs
'vue/multi-word-component-names': 0,
'vue/html-indent': ['error', 2],
'vue/comma-spacing': ['error', { before: false, after: true }],
'vue/script-indent': ['error', 2, { baseIndent: 0 }],
'vue/keyword-spacing': ['error', { before: true, after: true }],
'vue/object-curly-spacing': ['error', 'always'],
Expand Down
2 changes: 1 addition & 1 deletion docs/components/content/examples/TableExampleAdvanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const resetFilters = () => {
// Pagination
const page = ref(1)
const pageCount = ref(10)
const pageCount = ref(10)
const pageTotal = ref(200) // This value should be dynamic coming from the API
const pageFrom = computed(() => (page.value - 1) * pageCount.value + 1)
const pageTo = computed(() => Math.min(page.value * pageCount.value, pageTotal.value))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const items = [{
label: 'Password'
}]
const accountForm = reactive({ name: 'Benjamin', username: 'benjamincanac' })
const accountForm = reactive({ name: 'Benjamin', username: 'benjamincanac' })
const passwordForm = reactive({ currentPassword: '', newPassword: '' })
function onSubmitAccount () {
Expand Down
2 changes: 1 addition & 1 deletion docs/components/content/examples/TabsExampleItemSlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const items = [{
description: 'Change your password here. After saving, you\'ll be logged out.'
}]
const accountForm = reactive({ name: 'Benjamin', username: 'benjamincanac' })
const accountForm = reactive({ name: 'Benjamin', username: 'benjamincanac' })
const passwordForm = reactive({ currentPassword: '', newPassword: '' })
function onSubmit (form) {
Expand Down

1 comment on commit 20556d3

@vercel
Copy link

@vercel vercel bot commented on 20556d3 Aug 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
ui-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.