mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Improved ESLint configuration, integrated spellcheck and error fixes (#8931)
* integrate cspell with eslint, improved configuration * core: fix linting errors * core: fix lint warnings * content: lint fixes * process service lint fixes * lint: process services cloud * lint: insights * lint: extensions * [ci:force] lint: cli fixes * [ci:force] comment out dead code * [ci:force] exclude dead code * fix code and tests * rollback some changes * fix testing lib * fix demo shell * minor lint warning fixes * minor lint fixes * fix process services
This commit is contained in:
@@ -51,12 +51,12 @@ const missingRepositories = {
|
||||
function licenseWithMDLinks(licenseExp: string): string {
|
||||
let licenseUrl = '';
|
||||
|
||||
if (licenseList[licenseExp] && licenseList[licenseExp]['url']) {
|
||||
if (licenseList[licenseExp]?.['url']) {
|
||||
licenseUrl = licenseList[licenseExp]['url'];
|
||||
} else {
|
||||
const substituteLicString = nonStandardLicenses[licenseExp.toLowerCase()];
|
||||
|
||||
if (licenseList[substituteLicString] && licenseList[substituteLicString]['url']) {
|
||||
if (licenseList[substituteLicString]?.['url']) {
|
||||
licenseUrl = licenseList[substituteLicString]['url'];
|
||||
}
|
||||
}
|
||||
@@ -125,7 +125,7 @@ export default function main(_args: string[], workingDir: string) {
|
||||
const pack = packages[packageName];
|
||||
pack['licenseExp'] = pack['licenses'].toString()
|
||||
.replace(/\*/, '')
|
||||
.replace(/[a-zA-Z0-9\-\.]+/g, (match: string) => {
|
||||
.replace(/[a-zA-Z0-9\-.]+/g, (match: string) => {
|
||||
const lowerMatch = match.toLowerCase();
|
||||
|
||||
if ((lowerMatch !== 'and') && (lowerMatch !== 'or') && (lowerMatch !== 'with')) {
|
||||
|
Reference in New Issue
Block a user