Skip to content

Commit

Permalink
style: lint all files
Browse files Browse the repository at this point in the history
  • Loading branch information
motea927 committed Jan 12, 2024
1 parent 651af80 commit 90f38df
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 94 deletions.
3 changes: 2 additions & 1 deletion eslint.config.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ module.exports = {
],
parserOptions: {
ecmaVersion: 'latest'
}
},
ignorePatterns: ['src/overlay-layout/**', 'dist/']
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"build:fix": "esno scripts/postbuild.ts",
"build:all": "npm run build:popup && npm run build:plugin",
"dev:playground": "npm -C popup run dev & npm -C playground run dev",
"lint": "eslint .",
"lint": "eslint . --config .eslintrc.cjs",
"release": "bumpp && npm publish",
"test": "vitest"
},
Expand Down Expand Up @@ -143,7 +143,6 @@
"tsup": "^8.0.1",
"typescript": "^5.3.2",
"vite": "^5.0.4",
"vite-plugin-vue-devtools": "^7.0.7",
"vitest": "^0.34.6",
"webpack": "^5.89.0"
}
Expand Down
5 changes: 1 addition & 4 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'

import Unplugin from '../src/vite'
import VueDevTools from 'vite-plugin-vue-devtools'

export default defineConfig({
plugins: [
// Inspect(),
Unplugin({
layoutPreview: {
style: {
Expand All @@ -18,6 +16,5 @@ export default defineConfig({
imageUrl: 'https://picsum.photos/200/300'
}
})
// VueDevTools()
]
})
82 changes: 0 additions & 82 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion popup/src/components/icons/IconImageUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const emit = defineEmits<{
(e: 'uploadImage', base64: string): void
}>()
const { data, file, open } = useFileSystemAccess()
const { file, open } = useFileSystemAccess()
const transformFileToBase64 = (file: File) =>
new Promise((resolve, reject) => {
Expand Down
4 changes: 2 additions & 2 deletions popup/src/components/icons/IconOpacity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { computed } from 'vue'
import IconContainer from '@/components/icons/IconContainer.vue'
import { Icon } from '@iconify/vue'
type Icon = {
type IconData = {
offset: number
name: string
className: string[] | string
Expand All @@ -27,7 +27,7 @@ const emit = defineEmits<{
(e: 'operation', offset: number): void
}>()
const icons = computed<Array<Icon>>(() => {
const icons = computed<Array<IconData>>(() => {
const disabledClassName = ['opacity-50', 'cursor-not-allowed']
return [
Expand Down
2 changes: 1 addition & 1 deletion src/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineNuxtModule<ModuleOptions>({
defaults: {
// ...default options
},
setup(options, _nuxt) {
setup(options) {
addVitePlugin(() => vite(options))
addWebpackPlugin(() => webpack(options))

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"strictNullChecks": true,
"esModuleInterop": true
},
"exclude": ["dist", "eslint.config.js"]
"exclude": ["dist", ". eslintrc.cjs"]
}

0 comments on commit 90f38df

Please sign in to comment.