Skip to content

Commit d1882df

Browse files
build: fully replace eslint with oxlint + dprint
1 parent bcc79ec commit d1882df

4 files changed

Lines changed: 3 additions & 57 deletions

File tree

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ validate-no-uncommitted-package-lock-changes:
5151
validate:
5252
make validate-no-uncommitted-package-lock-changes
5353
npm run i18n_extract
54-
# We are trying out oxlint. Now that it's been working well for a while with both oxlint and eslint, we have disabled
55-
# eslint, and after a few weeks we'll evaluate whether any problems are slipping through if only oxlint is used.
56-
npm run oxlint
54+
npm run lint
5755
npm run types
5856
npm run test:ci
5957
npm run build

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
"build": "fedx-scripts webpack",
1414
"i18n_extract": "fedx-scripts formatjs extract --include=plugins",
1515
"stylelint": "stylelint \"plugins/**/*.scss\" \"src/**/*.scss\" \"scss/**/*.scss\" --config .stylelintrc.json",
16-
"lint": "npm run stylelint && fedx-scripts eslint --ext .js --ext .jsx --ext .ts --ext .tsx .",
17-
"oxlint": "oxlint --type-aware --deny-warnings",
18-
"lint:fix": "npm run stylelint -- --fix && fedx-scripts eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx .",
16+
"lint": "dprint check && oxlint --type-aware --deny-warnings && npm run stylelint",
17+
"lint:fix": "dprint fmt && oxlint --type-aware --fix",
1918
"start": "fedx-scripts webpack-dev-server --progress",
2019
"start:with-theme": "paragon install-theme && npm start && npm install",
2120
"dev": "PUBLIC_PATH=/authoring/ MFE_CONFIG_API_URL='http://localhost:8000/api/mfe_config/v1' fedx-scripts webpack-dev-server --progress --host apps.local.openedx.io",
@@ -117,7 +116,6 @@
117116
"@types/react-dom": "^18",
118117
"axios-mock-adapter": "2.1.0",
119118
"dprint": "^0.54.0",
120-
"eslint-import-resolver-webpack": "^0.13.8",
121119
"fetch-mock-jest": "^1.5.1",
122120
"jest-canvas-mock": "^2.5.2",
123121
"jest-expect-message": "^1.1.3",

0 commit comments

Comments
 (0)