ecomfe / eslint-config

eslint shareable config for efe
MIT License
118 stars 31 forks source link

@ecomfe/eslint-config 当对象的 property 的值是字符串模板, 整个文件不检测 #17

Closed susiwen8 closed 3 years ago

susiwen8 commented 3 years ago

版本

eslint: 7.13.0 @ecomfe/eslint-config: 6.0.1

配置

    env: {
        browser: true,
        es2021: true,
    },
    extends: [
        '@ecomfe/eslint-config',
    ],
    parser: 'babel-eslint',

代码

console.log(1);

const a = {
    appKey: 'eot71qyZ0ino8W34o3XG6aQ9YdAn4R1m',
    path: `askonline/pages/qaonline/qaonline?uid=${1}&scene=payask&fr=center`
};

预期

现象

susiwen8 commented 3 years ago

应该是 babel 的问题 https://github.com/eslint/eslint/issues/13839