Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Seedsa committed May 23, 2024
1 parent 6884ff4 commit e1e61b5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
// The Follow config only works with eslint-plugin-vue v8.0.0+
'vue/setup-compiler-macros': true,
},
extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', 'plugin:prettier/recommended'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
Expand Down
2 changes: 2 additions & 0 deletions examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import {
locale,
ImportWord,
Columns,
TextAlign,
} from 'echo-editor'
import OpenAI from 'openai'
import { DEMO_CONTENT } from './initContent'
Expand Down Expand Up @@ -95,6 +96,7 @@ const extensions = [
Highlight,
BulletList,
OrderedList,
TextAlign.configure({ types: ['heading', 'paragraph', 'image'], spacer: true }),
Indent,
LineHeight,
TaskList.configure({
Expand Down
6 changes: 1 addition & 5 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
module.exports = {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
plugins: [require('tailwindcss/nesting'), require('tailwindcss'), require('autoprefixer')],
}
13 changes: 0 additions & 13 deletions src/extensions/BaseKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ import type { TrailingNodeOptions } from './TrailingNode/TrailingNode'
import Iframe from './Iframe/Iframe'
import type { IframeOptions } from './Iframe/Iframe'

import { TextAlign } from './TextAlign'
import type { TextAlignOptions } from './TextAlign'

import type { BubbleOptions } from '../components/menus/bubble'
import { defaultBubbleList, generateBubbleTypeMenu } from '../components/menus/bubble'

Expand Down Expand Up @@ -148,13 +145,6 @@ export interface BaseKitOptions {
* @default true
*/
selection: any | false

/**
* text align options or false, indicating whether to enable the text align
*
* @default true
*/
textAlign: Partial<TextAlignOptions> | false
}

export const BaseKit = Extension.create<BaseKitOptions>({
Expand Down Expand Up @@ -264,9 +254,6 @@ export const BaseKit = Extension.create<BaseKitOptions>({
if (this.options.selection !== false) {
extensions.push(Selection)
}
if (this.options.textAlign !== false) {
extensions.push(TextAlign.configure({ types: ['heading', 'paragraph', 'image'], ...this.options.textAlign }))
}

return extensions
},
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig({
}),
],
optimizeDeps: {
include: ['vue','zod','vee-validate','@vee-validate/zod'],
include: ['vue', 'zod', 'vee-validate', '@vee-validate/zod'],
},
resolve: {
alias: {
Expand Down

0 comments on commit e1e61b5

Please sign in to comment.