diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index fcf2d2f..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "brightspace/browser-config" -} diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..0542298 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,8 @@ +import { addExtensions, browserConfig, setDirectoryConfigs, testingConfig } from 'eslint-config-brightspace'; + +export default addExtensions(setDirectoryConfigs( + browserConfig, + { + 'test': testingConfig + } +), ['.js', '.html']); diff --git a/package.json b/package.json index 16433ee..d9b5857 100644 --- a/package.json +++ b/package.json @@ -12,16 +12,19 @@ "author": "D2L Corporation", "license": "Apache-2.0", "scripts": { - "lint": "eslint . --ext .js,.html", + "lint": "eslint .", "test": "npm run lint && npm run test:unit", "test:unit": "d2l-test-runner" }, "devDependencies": { "@brightspace-ui/testing": "^1", "@web/dev-server": "^0.4", - "eslint": "^8", - "eslint-config-brightspace": "^1.0", - "sinon": "^19" + "eslint": "^9", + "eslint-config-brightspace": "^2", + "sinon": "^19", + "@eslint/compat": "^1", + "@eslint/eslintrc": "^3", + "@eslint/js": "^9" }, "files": [ "/src" diff --git a/test/.eslintrc.json b/test/.eslintrc.json deleted file mode 100644 index 9c6a0b6..0000000 --- a/test/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "brightspace/testing-config" -}