feat: replace ESLint and JSHint with oxfmt for code style checking and formatting

This commit is contained in:
italo jose
2026-03-25 15:56:46 -03:00
parent 9269deeba0
commit caf327efde
5 changed files with 4 additions and 4192 deletions

View File

@@ -1,93 +0,0 @@
android_bundle/
dev_bundle/
docs/
examples/
scripts/
!tools/*.js
!tools/isobuild/*.js
!tools/catalog/*.js
!tools/packaging/*.js
!tools/cli/*.js
!tools/runners/*.js
!tools/tool-env/*.js
!tools/fs/*.js
# Below, files that have yet to be converted to match the linter
tools/archinfo.js
tools/auth-client.js
tools/auth.js
tools/buildmessage.js
tools/cleanup.js
tools/colon-converter.js
tools/config.js
tools/console.js
tools/deploy.js
tools/fiber-helpers.js
tools/fs/files.js
tools/fs/mini-files.js
tools/http-helpers.js
tools/inspector.js
tools/index.js
tools/mongo-exit-codes.ts
tools/processes.ts
tools/progress.ts
tools/project-context.js
tools/runners/run-log.js
tools/fs/safe-pathwatcher.js
tools/selftest.js
tools/service-connection.js
tools/shell-client.ts
tools/stats.js
tools/test-utils.js
tools/upgraders.js
tools/utils/utils.js
tools/fs/watch.js
tools/catalog/catalog-local.js
tools/catalog/catalog-remote.js
tools/catalog/catalog.js
tools/catalog/catalog-utils.js
tools/cli/commands-cordova.js
tools/cli/commands-packages-query.js
tools/cli/commands-packages.js
tools/cli/commands.js
tools/cli/main.js
tools/tool-env/flush-buffers-on-exit-in-windows.js
tools/tool-env/install-babel.js
tools/tool-env/isopackets.js
tools/tool-env/profile-require.js
tools/tool-env/profile.js
tools/runners/run-all.js
tools/runners/run-app.js
tools/runners/run-mongo.js
tools/runners/run-proxy.js
tools/runners/run-selenium.js
tools/packaging/package-client.js
tools/packaging/package-map.js
tools/packaging/package-version-parser.js
tools/packaging/release.js
tools/packaging/tropohouse.js
tools/packaging/updater.js
tools/packaging/warehouse.js
tools/isobuild/build-plugin.js
tools/isobuild/builder.js
tools/isobuild/bundler.js
tools/isobuild/compiler-deprecated-compile-step.js
tools/isobuild/compiler-plugin.js
tools/isobuild/compiler.js
tools/isobuild/import-scanner.js
tools/isobuild/isopack-cache.js
tools/isobuild/isopack.js
tools/isobuild/js-analyze.js
tools/isobuild/linker.js
tools/isobuild/linter-plugin.js
tools/isobuild/meteor-npm.js
tools/isobuild/npm-discards.ts
tools/isobuild/package-api.js
tools/isobuild/package-source.js
tools/isobuild/source-arch.js

View File

@@ -2,9 +2,11 @@ name: Check code-style
on:
push:
paths:
- 'packages/**'
- 'npm-packages/meteor-installer/**'
pull_request:
paths:
- 'packages/**'
- 'npm-packages/meteor-installer/**'
jobs:
check-code-style:
@@ -15,5 +17,5 @@ jobs:
with:
node-version: 22.x
- run: npm ci
- name: Run ESLint@8
run: npx eslint@8 "./npm-packages/meteor-installer/**/*.js"
- name: Check formatting with oxfmt
run: npx oxfmt --check .

View File

@@ -1,3 +0,0 @@
{
"esversion": 11
}

4036
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,25 +13,11 @@
"homepage": "https://www.meteor.com/",
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/eslint-parser": "^7.21.3",
"@babel/eslint-plugin": "^7.19.1",
"@babel/preset-react": "^7.18.6",
"@types/lodash.isempty": "^4.4.9",
"@types/node": "^18.16.18",
"@types/sockjs": "^0.3.36",
"@types/sockjs-client": "^1.5.4",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-vazco": "^7.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.8.8",
"typescript": "^5.4.5"
},
"scripts": {
@@ -43,49 +29,5 @@
},
"jshintConfig": {
"esversion": 11
},
"prettier": {
"semi": true,
"singleQuote": false
},
"eslintConfig": {
"extends": "vazco",
"rules": {
"global-require": "off",
"no-console": "off",
"camelcase": "warn",
"consistent-return": "off",
"quotes": [
"warn",
"single",
{
"allowTemplateLiterals": true
}
],
"no-shadow": [
"error",
{
"allow": [
"resolve"
]
}
],
"no-use-before-define": "warn",
"import/no-unresolved": "warn",
"require-await": "warn",
"space-before-function-paren": [
"warn",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"complexity": "off",
"func-names": "off",
"no-undef": "warn",
"curly": "off",
"sort-imports": "off"
}
}
}