Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(scripts): allow linting user code & lint ESM source files #1661

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@
"generateTypes": "tspc --emitDeclarationOnly --declaration --outDir packages/vencord-types",
"inject": "node scripts/runInstaller.mjs",
"uninject": "node scripts/runInstaller.mjs",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern src/userplugins",
"lint-styles": "stylelint \"src/**/*.css\" --ignore-pattern src/userplugins",
"lint:fix": "pnpm lint --fix",
"lint": "pnpm lint-user --ignore-pattern src/userplugins",
"lint:fix": "pnpm lint-user:fix --ignore-pattern src/userplugins",
"lint-styles": "pnpm lint-styles-user --ignore-pattern src/userplugins",
"lint-user": "eslint . --ext .js,.jsx,.mjs,.mjsx,.mts,.mtsx,.ts,.tsx",
"lint-user:fix": "pnpm lint-user --fix",
"lint-styles-user": "stylelint \"src/**/*.css\"",
"test": "pnpm buildStandalone && pnpm lint && pnpm lint-styles && pnpm testTsc && pnpm generatePluginJson",
"test-user": "pnpm buildStandalone && pnpm lint-user && pnpm lint-styles-user && pnpm testTsc && pnpm generatePluginJson",
"testWeb": "pnpm lint && pnpm buildWeb && pnpm testTsc",
"testWeb-user": "pnpm lint-user && pnpm buildWeb && pnpm testTsc",
"testTsc": "tsc --noEmit"
},
"dependencies": {
Expand Down