mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 22:16:28 +00:00
chore: re-enable eslint no-template-curly-in-string
This commit is contained in:
parent
982e36963d
commit
b7dec718f3
3 changed files with 4 additions and 1 deletions
|
@ -40,6 +40,7 @@ module.exports = {
|
|||
'no-console': 'error',
|
||||
'no-negated-condition': 'error',
|
||||
'no-param-reassign': 'error',
|
||||
'no-template-curly-in-string': 'error',
|
||||
'sort-imports': [
|
||||
'error',
|
||||
{
|
||||
|
@ -124,6 +125,7 @@ module.exports = {
|
|||
jest: true,
|
||||
},
|
||||
rules: {
|
||||
'no-template-curly-in-string': 0,
|
||||
'prefer-destructuring': 0,
|
||||
'prefer-promise-reject-errors': 0,
|
||||
'import/no-dynamic-require': 0,
|
||||
|
|
|
@ -179,6 +179,7 @@ export async function decryptConfig(
|
|||
'Migrating npmToken to npmrc'
|
||||
);
|
||||
if (is.string(decryptedConfig.npmrc)) {
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
if (decryptedConfig.npmrc.includes('${NPM_TOKEN}')) {
|
||||
logger.debug('Replacing ${NPM_TOKEN} with decrypted token');
|
||||
decryptedConfig.npmrc = decryptedConfig.npmrc.replace(
|
||||
|
|
|
@ -157,7 +157,7 @@ function dependencyStringVariableExpressionFormatMatch(
|
|||
): RegExp {
|
||||
return regEx(
|
||||
`\\s*dependency\\s+['"]${dependency.group}:${dependency.name}:` +
|
||||
'${([^}]*)}' +
|
||||
'${([^}]*)}' + // eslint-disable-line no-template-curly-in-string
|
||||
`['"](?:\\s|;|})`
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue