@sudsylint/sudsy 0.0.0-stage → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Maia Coox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,50 @@
1
- # Temporary Holding Version
1
+ # Sudsy
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **One formatter and linter for your whole repo.** One binary and one config file in place of Prettier, ESLint, ruff, buf, terraform fmt and the rest, measured file by file against each of them.
4
+
5
+ <!-- generated:support-headline -->Ready for 9 languages, early support for 18 more.<!-- /generated --> <!-- generated:support-ready -->Ready: JavaScript / TypeScript, Python, Protobuf, GraphQL, TOML, Angular templates, XML, Ruby and Makefile. The rest are in progress.<!-- /generated --> Early release (v0.0.x): config may change before 1.0.
6
+ <!-- generated:support-headline -->Ready for 8 languages, early support for 19 more.<!-- /generated --> <!-- generated:support-ready -->Ready: Python, Protobuf, GraphQL, TOML, Angular templates, XML, Ruby and Makefile. The rest are in progress.<!-- /generated --> Early release (v0.0.x): config may change before 1.0.
7
+
8
+ ## Try it
9
+
10
+ Read-only: `check` reports and changes no files. No config needed.
11
+
12
+ ```sh
13
+ npx @sudsylint/sudsy check src/ # or: uvx sudsy check src/
14
+ ```
15
+
16
+ ```
17
+ a.py:1:1: error[format]: the file is not formatted; run `sudsy format`
18
+ a.py:1:8: warning[unused-import]: `os` imported but unused
19
+ b.js:3:18: warning[no-debugger]: Unexpected 'debugger' statement.
20
+ ```
21
+
22
+ With no config, lint reports likely bugs only, never style. `sudsy format` rewrites the files; `sudsy fix` applies safe fixes, then formats. Some languages are small downloads: `sudsy languages add toml protobuf`.
23
+
24
+ ## Install
25
+
26
+ | Channel | Command |
27
+ |---|---|
28
+ | npm | `npm i -D @sudsylint/sudsy` |
29
+ | PyPI | `pip install sudsy` or `uvx sudsy` |
30
+ | Homebrew | `brew install bingsubandit/sudsy/sudsy` |
31
+ | Scoop | `scoop bucket add sudsy https://github.com/bingsubandit/scoop-sudsy; scoop install sudsy` |
32
+ | Binary | [GitHub releases](https://github.com/bingsubandit/sudsy/releases): Linux, macOS, Windows; x64 and arm64 |
33
+
34
+ Only C# needs more: the [.NET 10 runtime](https://dotnet.microsoft.com/download/dotnet/10.0).
35
+
36
+ ## Configure
37
+
38
+ ```sh
39
+ sudsy init --preset python/ruff # a starter sudsy.yaml
40
+ sudsy init --from prettier # read your .prettierrc and write the matching options
41
+ ```
42
+
43
+ ## Learn more
44
+
45
+ - [How close each language is to its reference tool](https://github.com/bingsubandit/sudsy#languages) (Prettier, ruff, buf, terraform fmt, ...)
46
+ - [Performance against Prettier, Biome, ruff, oxlint, CSharpier](https://github.com/bingsubandit/sudsy#performance)
47
+ - [Configuration](https://github.com/bingsubandit/sudsy/blob/main/docs/configuration.md), [rules and plugins](https://github.com/bingsubandit/sudsy/blob/main/docs/rules.md), [editors and CI](https://github.com/bingsubandit/sudsy/blob/main/docs/editors-and-ci.md)
48
+ - [Source, issues and changelog](https://github.com/bingsubandit/sudsy)
49
+
50
+ MIT licensed.
package/bin/sudsy.js ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ // Runs the `sudsy` binary of the platform package installed next to this one.
3
+ const { spawnSync } = require("node:child_process");
4
+ const path = require("node:path");
5
+
6
+ const platform = `${process.platform}-${process.arch}`;
7
+ let exe;
8
+ try {
9
+ const dir = path.dirname(require.resolve(`@sudsylint/cli-${platform}/package.json`));
10
+ exe = path.join(dir, process.platform === "win32" ? "sudsy.exe" : "sudsy");
11
+ } catch {
12
+ console.error(`sudsy: no binary package for ${platform} (are optionalDependencies disabled?)`);
13
+ process.exit(1);
14
+ }
15
+ const r = spawnSync(exe, process.argv.slice(2), { stdio: "inherit" });
16
+ if (r.error) {
17
+ console.error(`sudsy: ${r.error.message}`);
18
+ process.exit(1);
19
+ }
20
+ process.exit(r.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,49 @@
1
1
  {
2
2
  "name": "@sudsylint/sudsy",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.3",
4
+ "description": "Formatter and linter for 27 languages in one binary and one config file",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "formatter",
8
+ "linter",
9
+ "code-quality",
10
+ "prettier",
11
+ "eslint",
12
+ "ruff",
13
+ "biome",
14
+ "stylelint",
15
+ "shellcheck",
16
+ "hadolint",
17
+ "markdownlint",
18
+ "rubocop",
19
+ "yamllint",
20
+ "shfmt",
21
+ "ktlint",
22
+ "phpstan",
23
+ "csharpier",
24
+ "stylecop",
25
+ "tflint",
26
+ "javascript"
27
+ ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/bingsubandit/sudsy.git"
31
+ },
32
+ "homepage": "https://github.com/bingsubandit/sudsy",
33
+ "bin": {
34
+ "sudsy": "bin/sudsy.js"
35
+ },
36
+ "files": [
37
+ "bin",
38
+ "LICENSE",
39
+ "README.md"
40
+ ],
41
+ "optionalDependencies": {
42
+ "@sudsylint/cli-linux-x64": "0.0.3",
43
+ "@sudsylint/cli-linux-arm64": "0.0.3",
44
+ "@sudsylint/cli-darwin-x64": "0.0.3",
45
+ "@sudsylint/cli-darwin-arm64": "0.0.3",
46
+ "@sudsylint/cli-win32-x64": "0.0.3",
47
+ "@sudsylint/cli-win32-arm64": "0.0.3"
48
+ }
49
+ }