mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 06:26:26 +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-console': 'error',
|
||||||
'no-negated-condition': 'error',
|
'no-negated-condition': 'error',
|
||||||
'no-param-reassign': 'error',
|
'no-param-reassign': 'error',
|
||||||
|
'no-template-curly-in-string': 'error',
|
||||||
'sort-imports': [
|
'sort-imports': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
@ -124,6 +125,7 @@ module.exports = {
|
||||||
jest: true,
|
jest: true,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
'no-template-curly-in-string': 0,
|
||||||
'prefer-destructuring': 0,
|
'prefer-destructuring': 0,
|
||||||
'prefer-promise-reject-errors': 0,
|
'prefer-promise-reject-errors': 0,
|
||||||
'import/no-dynamic-require': 0,
|
'import/no-dynamic-require': 0,
|
||||||
|
|
|
@ -179,6 +179,7 @@ export async function decryptConfig(
|
||||||
'Migrating npmToken to npmrc'
|
'Migrating npmToken to npmrc'
|
||||||
);
|
);
|
||||||
if (is.string(decryptedConfig.npmrc)) {
|
if (is.string(decryptedConfig.npmrc)) {
|
||||||
|
/* eslint-disable no-template-curly-in-string */
|
||||||
if (decryptedConfig.npmrc.includes('${NPM_TOKEN}')) {
|
if (decryptedConfig.npmrc.includes('${NPM_TOKEN}')) {
|
||||||
logger.debug('Replacing ${NPM_TOKEN} with decrypted token');
|
logger.debug('Replacing ${NPM_TOKEN} with decrypted token');
|
||||||
decryptedConfig.npmrc = decryptedConfig.npmrc.replace(
|
decryptedConfig.npmrc = decryptedConfig.npmrc.replace(
|
||||||
|
|
|
@ -157,7 +157,7 @@ function dependencyStringVariableExpressionFormatMatch(
|
||||||
): RegExp {
|
): RegExp {
|
||||||
return regEx(
|
return regEx(
|
||||||
`\\s*dependency\\s+['"]${dependency.group}:${dependency.name}:` +
|
`\\s*dependency\\s+['"]${dependency.group}:${dependency.name}:` +
|
||||||
'${([^}]*)}' +
|
'${([^}]*)}' + // eslint-disable-line no-template-curly-in-string
|
||||||
`['"](?:\\s|;|})`
|
`['"](?:\\s|;|})`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue