Browse Source

fix: eslint issue of gtag not defined (#18517)

pull/18516/head
LaySent 5 years ago
committed by 偏右
parent
commit
be5760d8ef
  1. 7
      .eslintrc.js

7
.eslintrc.js

@ -84,14 +84,17 @@ const eslintrc = {
'max-classes-per-file': 0,
'react/static-property-placement': 0,
},
globals: {
gtag: true,
},
};
if (process.env.RUN_ENV === 'DEMO') {
eslintrc.globals = {
eslintrc.globals = Object.assign(eslintrc.globals, {
React: true,
ReactDOM: true,
mountNode: true,
};
});
Object.assign(eslintrc.rules, {
indent: 0,

Loading…
Cancel
Save