Skip to content

Commit 54ca574

Browse files
committed
don't allow inspect and console.log
1 parent b31244a commit 54ca574

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

eslint.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ import svelteParser from 'svelte-eslint-parser';
33
import tsParser from '@typescript-eslint/parser';
44

55
export default [
6+
{
7+
rules: {
8+
'no-console': ['error', { allow: ['error'] }]
9+
}
10+
},
611
...svelte.configs.recommended,
712
{
813
files: ['**/*.svelte', '*.svelte'],
914
rules: {
10-
'svelte/no-object-in-text-mustaches': 'warn'
15+
'svelte/no-object-in-text-mustaches': 'warn',
16+
'svelte/no-inspect': 'warn'
1117
},
1218
ignores: ['dist/*', '.sveltepress/*'],
1319
languageOptions: {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy