Skip to content

Commit

Permalink
fix(comp:all): fix CI lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed May 24, 2022
1 parent 8bbbec1 commit 095a401
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { resolve } = require('path')

const prettierConfig = require('./.prettierrc.js')

module.exports = {
Expand Down Expand Up @@ -28,8 +29,8 @@ module.exports = {
'import/resolver': {
'eslint-import-resolver-custom-alias': {
alias: {
'@idux': './packages',
'@tests': './tests',
'@idux': resolve(__dirname, './packages'),
'@tests': resolve(__dirname, './tests'),
},
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.vue', '.md'],
packages: ['packages/*'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"resolve-bin": "^1.0.0",
"rollup": "^2.70.2",
"rollup-plugin-typescript2": "^0.31.2",
"stylelint": "^14.7.1",
"stylelint": "^14.8.3",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^24.0.0",
"svgo": "^2.8.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/components/form/style/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
}
}

// when labelCol is 24, it is a vertical form
.@{form-prefix}-vertical .@{form-item-prefix}-label,
// when labelCol is 24, it is a vertical form
.@{idux-prefix}-col-24.@{form-item-prefix}-label,
.@{idux-prefix}-col-xl-24.@{form-item-prefix}-label {
.@{idux-prefix}-col-24.@{form-item-prefix}-label,
.@{idux-prefix}-col-xl-24.@{form-item-prefix}-label {
.form-vertical-layout-label();
}

Expand Down
1 change: 1 addition & 0 deletions packages/site/src/components/layout/LayoutSider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { computed, inject } from 'vue'
import { appContextToken } from '../../context'
// eslint-disable-next-line import/no-unresolved
import { config } from '../../sideNav'
const { breakpoints, lang, page, path } = inject(appContextToken)!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { computed, inject } from 'vue'
import { useRouter } from 'vue-router'
import { appContextToken } from '../../../context'
// eslint-disable-next-line import/no-unresolved
import { config } from '../../../sideNav'
const router = useRouter()
Expand Down
1 change: 1 addition & 0 deletions packages/site/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import App from './App.vue'
// eslint-disable-next-line import/no-unassigned-import
import './index.less'

// eslint-disable-next-line import/no-unresolved
import { routes } from './router'

const router = createRouter({
Expand Down

0 comments on commit 095a401

Please sign in to comment.