handling files when stages and dirty at once
This commit is contained in:
@@ -29,6 +29,12 @@ export default tseslint.config(
|
||||
files: ['test/**/*.{ts,tsx}'],
|
||||
languageOptions: { globals: { ...globals.node, ...globals.browser } },
|
||||
},
|
||||
{
|
||||
// electron-builder hooks: plain CommonJS, run by node outside the app.
|
||||
files: ['build/**/*.cjs'],
|
||||
languageOptions: { globals: { ...globals.node }, sourceType: 'commonjs' },
|
||||
rules: { '@typescript-eslint/no-require-imports': 'off' },
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
|
||||
Reference in New Issue
Block a user