Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan committed May 8, 2024
1 parent 9b10e4f commit d3fe2db
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 22 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"markdown-it": "^13.0.1",
"markdown-it-link-attributes": "^4.0.1",
"rollup": "^2.75.7",
"rollup-plugin-analyzer": "^4.0.0",
"sass": "^1.53.0",
"sitemap": "^7.1.1",
"tree-sitter-cli": "^0.20.6",
Expand Down
9 changes: 0 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/CodeAndTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</n-gi>
<n-gi>
<syntax-tree
:global-root-tree-option="globalRootTreeOption"
:use-global-root-tree-option="useGlobalRootTreeOption"
:guess-root="guessRoot"
:correct-root="correctRoot"
:mark-range="editor?.markRange"
Expand All @@ -37,7 +37,7 @@ import SyntaxTree from './SyntaxTree.vue';
import { parse } from '../parse';
const props = withDefaults(defineProps<{
globalRootTreeOption: boolean,
useGlobalRootTreeOption: boolean,
correctRoot: SyntaxNode | null,
code: string,
maxHeight?: string,
Expand Down
2 changes: 1 addition & 1 deletion src/components/GuessHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</n-form-item>
</n-form>
<code-and-tree
global-root-tree-option
use-global-root-tree-option
:code="code"
:correct-root="correctRoot"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PuzzleHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</div>
<div v-show="tab === 'code'">
<code-and-tree
:global-root-tree-option="false"
:use-global-root-tree-option="false"
:code="targetCode"
:correct-root="treeRoot"
:max-height="codeAndTreeHeight"
Expand Down
4 changes: 2 additions & 2 deletions src/components/SyntaxTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ const props = defineProps<{
guessRoot: SyntaxNode | null,
correctRoot: SyntaxNode | null,
markRange?: MarkRange,
globalRootTreeOption: boolean,
useGlobalRootTreeOption: boolean,
maxHeight: string,
}>();
const rootTreeOption = props.globalRootTreeOption ? globalRootTreeOption : ref<TreeOptionEx>();
const rootTreeOption = props.useGlobalRootTreeOption ? globalRootTreeOption : ref<TreeOptionEx>();
const defaultExpandedKeys = ref<number[]>([]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/SyntaxTreeDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/>
<syntax-tree
max-height="60vh"
:global-root-tree-option="false"
:use-global-root-tree-option="false"
:guess-root="guessRoot"
:correct-root="targetRoot"
/>
Expand Down
5 changes: 0 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig, splitVendorChunk } from 'vite';
import { GetManualChunk } from 'rollup';
import vue from '@vitejs/plugin-vue';
import analyzer from 'rollup-plugin-analyzer';
import { createHtmlPlugin } from 'vite-plugin-html';
import viteCompression from 'vite-plugin-compression';
import viteRestart from 'vite-plugin-restart';
Expand Down Expand Up @@ -56,10 +55,6 @@ export default defineConfig({
},
},
}),
analyzer({
limit: 10,
summaryOnly: true,
}),
],
base: '',
build: {
Expand Down

0 comments on commit d3fe2db

Please sign in to comment.