Skip to content

Commit

Permalink
chore: enable reportUnusedDisableDirectives (#8384)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed May 29, 2022
1 parent f6bd317 commit 9a99bc4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Expand Up @@ -159,5 +159,6 @@ module.exports = defineConfig({
'no-restricted-globals': ['error', 'require', '__dirname', '__filename']
}
}
]
],
reportUnusedDisableDirectives: true
})
1 change: 0 additions & 1 deletion packages/plugin-vue/src/template.ts
Expand Up @@ -42,7 +42,6 @@ export async function transformTemplateAsModule(
/**
* transform the template directly in the main SFC module
*/
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function transformTemplateInMain(
code: string,
descriptor: SFCDescriptor,
Expand Down
@@ -1,6 +1,5 @@
import '../../../../../../types/importMeta'

/* eslint-disable @typescript-eslint/comma-dangle */
export interface ModuleType {
name: string
}
Expand Down
Expand Up @@ -269,7 +269,6 @@ describe('parse negatives', async () => {
})

it('template', async () => {
// eslint-disable-next-line no-template-curly-in-string
expect(
await runError('import.meta.glob(`hi ${hey}`)')
).toMatchInlineSnapshot(
Expand Down
4 changes: 1 addition & 3 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -16,9 +16,7 @@ import colors from 'picocolors'
import MagicString from 'magic-string'
import type * as PostCSS from 'postcss'
import type Sass from 'sass'
// We need to disable check of extraneous import which is buggy for stylus,
// and causes the CI tests fail, see: https://github.com/vitejs/vite/pull/2860
import type Stylus from 'stylus' // eslint-disable-line node/no-extraneous-import
import type Stylus from 'stylus'
import type Less from 'less'
import type { Alias } from 'types/alias'
import { formatMessages, transform } from 'esbuild'
Expand Down

0 comments on commit 9a99bc4

Please sign in to comment.