解决 Cannot read property ‘range‘ of null 错误

【解决 Cannot read property ‘range‘ of null 错误】.eslintrc 配置文件加上:

parserOptions: {ecmaFeatures: {legacyDecorators: true }, parser: 'babel-eslint', },

rules : {"template-curly-spacing" : "off", "indent": ["error", 4, {"ignoredNodes": ["TemplateLiteral"] }] }

    推荐阅读