Repository: eslint/eslint
File: tests/lib/rules/no-restricted-properties.js (JavaScript)

Code before:
        }, {
            code: "({ bad }) => {};",
            options: [{ property: "bad" }],
            parserOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "({ bad } = {}) => {};",
            options: [{ property: "bad" }],
            parserOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "({ bad: bar }) => {};",
            options: [{ property: "bad" }],
            parserOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "({ bar: { bad } = {} }) => {};",
            options: [{ property: "bad" }],
            parserOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "[{ bad }] = foo;",
            options: [{ property: "bad" }],
            parserOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {

Review comment (suggestion):
```suggestion
            languageOptions: { ecmaVersion: 6 },
```

Code after:
        }, {
            code: "({ bad }) => {};",
            options: [{ property: "bad" }],
            languageOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "({ bad } = {}) => {};",
            options: [{ property: "bad" }],
            languageOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "({ bad: bar }) => {};",
            options: [{ property: "bad" }],
            languageOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "({ bar: { bad } = {} }) => {};",
            options: [{ property: "bad" }],
            languageOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {
                    propertyName: "bad",
                    message: ""
                }
            }]
        }, {
            code: "[{ bad }] = foo;",
            options: [{ property: "bad" }],
            languageOptions: { ecmaVersion: 6 },
            errors: [{
                messageId: "restrictedProperty",
                data: {