Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ updates:
- "RomiC"
schedule:
interval: "monthly"
versioning-strategy: increase
versioning-strategy: increase
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
- name: Installing dependencies
run: npm ci
- name: Linting
run: npm run lint:all
run: npm run lint
- name: Formatting check
run: npm run format:check
- name: Testing
run: npm test

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
- name: Installing dependencies
run: npm ci
- name: Linting
run: npm run lint:all
run: npm run lint
- name: Formatting check
run: npm run format:check
- name: Testing
run: npm test
- uses: coverallsapp/github-action@v2.3.6
Expand Down
12 changes: 0 additions & 12 deletions .prettierrc

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ ya-token-cli -i <client-id> -s <client-secret> -r http://localhost:8899

### Options

| Flag | Description |
|------|-------------|
| `-i, --client-id <id>` | Yandex OAuth client ID |
| `-s, --client-secret <secret>` | Yandex OAuth client secret |
| `-r, --redirect-uri <uri>` | Redirect URI for automatic flow |
| `-m, --manual` | Skip automatic redirect, prompt for code manually |
| `-u, --short-url` | Shorten the auth URL using clck.ru |
| `-h, --help` | Show help |
| Flag | Description |
| ------------------------------ | ------------------------------------------------- |
| `-i, --client-id <id>` | Yandex OAuth client ID |
| `-s, --client-secret <secret>` | Yandex OAuth client secret |
| `-r, --redirect-uri <uri>` | Redirect URI for automatic flow |
| `-m, --manual` | Skip automatic redirect, prompt for code manually |
| `-u, --short-url` | Shorten the auth URL using clck.ru |
| `-h, --help` | Show help |

Environment variables (`YANDEX_CLIENT_ID`, `YANDEX_CLIENT_SECRET`, `REDIRECT_URI`) are also supported as fallback.

Expand Down
66 changes: 0 additions & 66 deletions eslint.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions oxfmt.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default {
arrowParens: 'always',
bracketSpacing: true,
printWidth: 120,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'none',
useTabs: false,
sortPackageJson: false,
ignorePatterns: ['coverage'],
overrides: [{ files: ['**/*.{yml,yaml}'], options: { singleQuote: false } }]
};
6 changes: 6 additions & 0 deletions oxlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'oxlint';

export default defineConfig({
categories: { correctness: 'error' },
env: { builtin: true, node: true }
});
Loading