chore: simplify eslint configuration (#44347)
* chore: extend import/recommended * chore: use recommended lint rules * refactor: apply lint rules * chore: drop used config
This commit is contained in:
committed by
GitHub
parent
4a4aa1f2f9
commit
efba2e777d
@@ -230,7 +230,7 @@ prompt([
|
||||
if (!block.length) {
|
||||
return 'please enter a short name';
|
||||
}
|
||||
if (/[^a-z0-9\-]/.test(block)) {
|
||||
if (/[^a-z0-9-]/.test(block)) {
|
||||
return 'please use alphanumerical characters and kebab case';
|
||||
}
|
||||
return true;
|
||||
|
@@ -35,7 +35,12 @@ const removeDeletedFiles = async projectId => {
|
||||
return { ...obj, [filename]: 1 };
|
||||
}, {});
|
||||
for (let { fileId, path: crowdinFilePath } of crowdinFiles) {
|
||||
if (!curriculumLookup.hasOwnProperty(crowdinFilePath)) {
|
||||
if (
|
||||
!Object.prototype.hasOwnProperty.call(
|
||||
curriculumLookup,
|
||||
crowdinFilePath
|
||||
)
|
||||
) {
|
||||
await deleteFile(projectId, fileId, crowdinFilePath);
|
||||
}
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ module.exports = {
|
||||
if (baseLang && !lang) {
|
||||
onError({
|
||||
lineNumber: codeBlock.lineNumber,
|
||||
detail: `\'${baseLang}\' is not recognised.`
|
||||
detail: `'${baseLang}' is not recognised.`
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user