Skip to content

chore(deps-dev): bump eslint-config-brightspace from 1.3.2 to 2.0.0 #5173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 change: 0 additions & 1 deletion cli/empty-state-illustration-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function createSvgs(svgs) {
const destPath = path.join(outputPath, `${name}.js`);

const data = readFileSync(sourcePath);
/* eslint-disable-next-line prefer-template */
const output = '// auto-generated\n' + 'export const val = `' + data + '`;\n';

writeFileSync(destPath, output);
Expand Down
2 changes: 0 additions & 2 deletions cli/icon-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ function createSvg(category, name) {
}

const data = readFileSync(sourcePath);
/* eslint-disable-next-line prefer-template */
const output = '// auto-generated\n' + 'export const val = `' + data + '`;\n';

writeFileSync(destPath, output);
Expand Down Expand Up @@ -101,7 +100,6 @@ function createCatalogue(categories) {
} else if (category.name === 'tier3') {
size = 30;
}
/* eslint-disable-next-line prefer-template */
output += `## ${category.name}\n\n` + 'Size: `' + size + 'px` x `' + size + '`px\n\n';

const numCols = 3;
Expand Down
1 change: 1 addition & 0 deletions components/popover/test/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class Popover extends PopoverMixin(LitElement) {
}

#handleContentScroll() {
// eslint-disable-next-line
console.log('handle content scroll');
}

Expand Down
39 changes: 11 additions & 28 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,21 @@
import { fileURLToPath } from 'node:url';
import { FlatCompat } from '@eslint/eslintrc';
import { includeIgnoreFile } from '@eslint/compat';
import js from '@eslint/js';
import path from 'node:path';
import { addExtensions, litConfig, nodeConfig, setDirectoryConfigs, testingConfig } from 'eslint-config-brightspace';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
const gitignorePath = path.resolve(__dirname, '.gitignore');
const files = ['**/*.js', '**/*.html'];
export default [
includeIgnoreFile(gitignorePath),
...compat.extends('brightspace/lit-config').map(c => ({
...c,
files: c.files ?? files
})),
{
ignores: ['.vdiff']
},
...setDirectoryConfigs(
addExtensions(litConfig, ['.js', '.html']),
{
'**/test':testingConfig,
cli: nodeConfig
}
),
{
languageOptions: {
globals: {
Prism: false,
},
},
},
...compat.extends('brightspace/testing-config').map(config => ({
...config,
files: ['**/test/*'],
})),
...compat.extends('brightspace/node-config').map(config => ({
...config,
files: ['cli/*'],
rules: { 'no-console':0 }
})),
];
Loading
Loading