Skip to content

Commit

Permalink
Merge pull request #129 from Brightspace/gzolla/fix-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
GZolla authored Nov 25, 2024
2 parents acb3d5a + 3ac4bdd commit ace3289
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions configs/lit.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export default [
}
},
{
'files': ['./**/lang/*.js'],
'files': ['**/lang/*.js'],
'rules': {
'quotes': 0
}
}, {
'files': ['./**/demo/*.html'],
'files': ['**/demo/*.html'],
'rules': {
'no-console': 0
}
Expand Down
6 changes: 1 addition & 5 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ export function setDirectoryConfigs(globalConfig, directoryConfigs) {
}

for (const dirConfig of directoryConfigs[dir]) {
const files = dirConfig.files ? dirConfig.files.map(f => {
if (f.startsWith('./')) return `${dir}${f.slice(1)}`;
if (f.startsWith('*')) return `${dir}${f}`;
return `${dir}/${f}`;
}) : [pattern];
const files = dirConfig.files ? dirConfig.files.map(f => `${dir}/${f}`) : [pattern];
configs.push({
...dirConfig,
files
Expand Down

0 comments on commit ace3289

Please sign in to comment.