Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default [
'max-len': ['off'],
'complexity': ['warn', 15],
'max-params': ['warn', 4],
'no-param-reassign': 'warn',
Comment thread
daogrady marked this conversation as resolved.
'prefer-const': 'warn',
'no-var': 'error',
'object-shorthand': 'warn',
Expand All @@ -31,13 +30,13 @@ export default [
'yoda': ['warn', 'never', { exceptRange: true }], // Natural comparison order, except ranges
'no-implicit-coercion': 'off', // Allow !!value, +str, etc.
'no-nested-ternary': 'off', // Allow with proper newlines

// Error Prevention - inspired by Phoenix35/eslint-config
'no-throw-literal': 'error',
'no-eval': 'error',
'no-implied-eval': 'error',
'no-new-func': 'error',

// Code Quality
'no-lonely-if': 'warn',
'no-useless-return': 'warn',
Expand Down
4 changes: 2 additions & 2 deletions lib/compile/csdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class CSDLMeta {
this.#getVocabularies(this.alias);

Object.keys(this.csdl).filter(name => isIdentifier(name)).forEach(name => {
const schema = this.csdl[name];
const qualifier = schema.$Alias || name;
const schema = this.csdl[name] ?? {};
const qualifier = schema.$Alias ?? name;
Comment thread
daogrady marked this conversation as resolved.
const isDefaultNamespace = schema[this.voc.Core.DefaultNamespace];

this.alias[name] = qualifier;
Expand Down
Loading
Loading