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 58fcc58..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,8 +30,8 @@ "@babel/preset-env": "^7", "babel-eslint": "^10", "babel-plugin-transform-dynamic-import": "^2", - "eslint": "^8", - "eslint-config-brightspace": "^1", + "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';