B
B
Bogdan2019-12-05 23:59:36
Vue.js
Bogdan, 2019-12-05 23:59:36

vue/no-restricted-syntax not working?

Hello, but do not tell me about eslint-plugin-vue . Updated to the new version and stopped excluding events.

'vue/no-restricted-syntax': [
      'error',
      {
        'selector': 'VElement > VExpressionContainer CallExpression',
        'message': 'Call expressions are not allowed.'
      },
      {
        'selector': 'VElement VAttribute[key.name != "on"] CallExpression',
        'message': 'Call expressions are not allowed.'
      }
    ]

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question