Skip to content

Commit

Permalink
Merge pull request #57 from Brightspace/gzolla/update-to-eslint9
Browse files Browse the repository at this point in the history
fix: Update to eslint9
  • Loading branch information
GZolla authored Nov 25, 2024
2 parents 63f37d7 + d477138 commit c0a6962
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { addExtensions, browserConfig, setDirectoryConfigs, testingConfig } from 'eslint-config-brightspace';

export default addExtensions(setDirectoryConfigs(
browserConfig,
{
'test': testingConfig
}
), ['.js', '.html']);
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions test/.eslintrc.json

This file was deleted.

0 comments on commit c0a6962

Please sign in to comment.