From 841c4c297929b9d1fe19af5223c6673b3f3abc5d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:21:27 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump eslint-config-brightspace from 1.3.2 to 2.0.1 Bumps [eslint-config-brightspace](https://github.com/Brightspace/eslint-config-brightspace) from 1.3.2 to 2.0.1. - [Release notes](https://github.com/Brightspace/eslint-config-brightspace/releases) - [Commits](https://github.com/Brightspace/eslint-config-brightspace/compare/v1.3.2...v2.0.1) --- updated-dependencies: - dependency-name: eslint-config-brightspace dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 58fcc58..d957a6b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "babel-eslint": "^10", "babel-plugin-transform-dynamic-import": "^2", "eslint": "^8", - "eslint-config-brightspace": "^1", + "eslint-config-brightspace": "^2", "rimraf": "^6.0.1" } } From b76a9ccd43c8b6e41a18bddcbfe7e0291a4e657f Mon Sep 17 00:00:00 2001 From: GZolla <43836485+GZolla@users.noreply.github.com> Date: Wed, 27 Nov 2024 12:02:50 -0800 Subject: [PATCH 2/2] Use new shared Configs I'm realizing that this repo might need another update to its templates, will include that in a separate PR --- .eslintignore | 2 -- .eslintrc.json | 3 --- eslint.config.mjs | 8 ++++++++ package.json | 4 ++-- src/create.js | 1 - 5 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.json create mode 100644 eslint.config.mjs diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 27a11cf..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist -src/generators/*/templates/**/* diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 0771e06..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["brightspace/lit-config", "brightspace/node-config"] -} diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..1a313ba --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,8 @@ +import { nodeConfig } from 'eslint-config-brightspace'; + +export default [ + { + ignores: ['dist', 'src/generators/*/templates/**/*'] + }, + ...nodeConfig +]; diff --git a/package.json b/package.json index d957a6b..9c71bf9 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "scripts": { "build": "rimraf dist && babel src --out-dir dist --copy-files --include-dotfiles", - "lint:eslint": "eslint . --ext .js,.html", + "lint:eslint": "eslint .", "test": "npm run lint:eslint" }, "files": [ @@ -30,7 +30,7 @@ "@babel/preset-env": "^7", "babel-eslint": "^10", "babel-plugin-transform-dynamic-import": "^2", - "eslint": "^8", + "eslint": "^9", "eslint-config-brightspace": "^2", "rimraf": "^6.0.1" } diff --git a/src/create.js b/src/create.js index 7390f06..cdf2c4b 100755 --- a/src/create.js +++ b/src/create.js @@ -1,6 +1,5 @@ #!/usr/bin/env node -/* eslint-disable no-console */ import prompts from 'prompts'; import { run as setupDefaultContent } from './generators/default-content/index.js'; import { run as setupDemo } from './generators/demo/index.js';