Skip to content

Commit

Permalink
chore(deps-dev): bump eslint-config-brightspace from 1.3.2 to 2.0.0 (#…
Browse files Browse the repository at this point in the history
…550)

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

Bumps [eslint-config-brightspace](https://github.com/Brightspace/eslint-config-brightspace) from 1.3.2 to 2.0.0.
- [Release notes](https://github.com/Brightspace/eslint-config-brightspace/releases)
- [Commits](Brightspace/eslint-config-brightspace@v1.3.2...v2.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-brightspace
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use new shared configs

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GZolla <[email protected]>
  • Loading branch information
dependabot[bot] and GZolla authored Dec 3, 2024
1 parent e6021b5 commit dd23a39
Show file tree
Hide file tree
Showing 3 changed files with 493 additions and 401 deletions.
54 changes: 14 additions & 40 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,17 @@
import { fileURLToPath } from 'node:url';
import { FlatCompat } from '@eslint/eslintrc';
import { browserConfig, nodeConfig, setDirectoryConfigs, testingConfig } from 'eslint-config-brightspace';
import globals from 'globals';
import { includeIgnoreFile } from '@eslint/compat';
import js from '@eslint/js';
import path from 'node:path';

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');

export default [
includeIgnoreFile(gitignorePath),
...compat.extends('brightspace/browser-config').map(config => ({
...config,
files: ['**/*.js'],
})),
...compat.extends('brightspace/node-config').map(config => ({
...config,
files: ['test/**/*'],
})),
export default setDirectoryConfigs(
browserConfig,
{
files: ['test/**/*'],

languageOptions: {
globals: {
...globals.mocha,
},

ecmaVersion: 'latest',
sourceType: 'module',
},
},
...compat.extends('brightspace/testing-config').map(config => ({
...config,
files: ['test/browser/**/*'],
})),
];
test: [
...nodeConfig,
{
languageOptions: {
globals: { ...globals.mocha }
}
}
],
'test/browser': testingConfig
}
);
Loading

0 comments on commit dd23a39

Please sign in to comment.