Skip to content

Commit 458f18b

Browse files
committed
feature: @putout/eslint-config: no-prototype-builtins: off
1 parent 4d1962e commit 458f18b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/eslint-config/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const rules = {
2222
},
2323
}],
2424
'no-delete-var': 'off',
25+
'no-prototype-builtins': 'off',
2526
'no-unused-labels': 'off',
2627
'no-else-return': ['error', {
2728
allowElseIf: false,

packages/eslint-config/test/eslint-config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ test('eslint-config: object-shorthand', async ({comparePlaces}) => {
6666
await comparePlaces('object-shorthand', []);
6767
});
6868

69+
test('eslint-config: no-prototype-builtins', async ({comparePlaces}) => {
70+
await comparePlaces('no-prototype-builtins', []);
71+
});
72+
6973
test('eslint-config: no-delete-var', async ({comparePlaces}) => {
7074
await comparePlaces('no-delete-var', [], {
7175
rules: {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const signalsInfo = {};
2+
const signal = 'x';
3+
4+
signalsInfo.hasOwnProperty(signal);

0 commit comments

Comments
 (0)