voss-node-configs 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/front-end.js +8 -4
- package/package.json +1 -1
package/front-end.js
CHANGED
|
@@ -16,12 +16,16 @@ export default [
|
|
|
16
16
|
},
|
|
17
17
|
rules: {
|
|
18
18
|
// Frontend-specific rules
|
|
19
|
-
'no-console': 'warn', // Warn about console in frontend
|
|
20
19
|
'@typescript-eslint/no-require-imports': 'error', // Disallow require() in frontend
|
|
21
20
|
'global-require': 'error', // Disallow require() in frontend
|
|
22
|
-
'no-alert': 'error',
|
|
23
|
-
'no-
|
|
24
|
-
|
|
21
|
+
'no-alert': 'error',
|
|
22
|
+
'no-restricted-globals': ['error', {
|
|
23
|
+
name: 'confirm',
|
|
24
|
+
message: 'Please use a custom confirmation dialog instead of confirm().'
|
|
25
|
+
}, {
|
|
26
|
+
name: 'prompt',
|
|
27
|
+
message: 'Please use a custom input dialog instead of prompt().'
|
|
28
|
+
}],
|
|
25
29
|
},
|
|
26
30
|
},
|
|
27
31
|
];
|