@textmode/lint 0.1.0 → 0.1.1
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/README.md +14 -34
- package/markdownlint-cli2.jsonc +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
+
<img alt="@textmode/lint — lint textmode everywhere" src=".github/assets/readme-og.png" />
|
|
6
|
+
|
|
5
7
|
| [](https://developer.mozilla.org/en-US/docs/Web/JavaScript) [](https://eslint.org/) [](https://prettier.io/) [](https://github.com/DavidAnson/markdownlint) | [](https://code.textmode.art/) [](https://discord.gg/sjrw8QXNks) | [](https://ko-fi.com/V7V8JG2FY) [](https://github.com/sponsors/humanbydefinition) |
|
|
6
|
-
|
|
|
8
|
+
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
7
9
|
|
|
8
10
|
</div>
|
|
9
11
|
|
|
@@ -17,7 +19,6 @@ Use it to give every repository the same lint and format behavior without repeat
|
|
|
17
19
|
- **One command** - `textmode-lint lint`, `format`, `format:check`, `lint:markdown`, and `check` cover the whole surface.
|
|
18
20
|
- **Zero config** - Conventional projects need no ESLint, Prettier, or markdownlint configuration. The shared configs ship in the package.
|
|
19
21
|
- **Zero ignore duplication** - A shared `.prettierignore` baseline ships with the package and is used only when a project has no `.prettierignore` of its own.
|
|
20
|
-
- **Backward compatible rules** - The ESLint, Prettier, and markdownlint rules are identical to the previous `@textmode/eslint-config`, `@textmode/prettier-config`, and `@textmode/markdownlint-config` packages.
|
|
21
22
|
|
|
22
23
|
## Installation
|
|
23
24
|
|
|
@@ -120,39 +121,18 @@ and formatter). A project can override or extend it with its own
|
|
|
120
121
|
|
|
121
122
|
```jsonc
|
|
122
123
|
{
|
|
123
|
-
"ignores": ["examples/**/*.md", ".agents/**"]
|
|
124
|
+
"ignores": ["examples/**/*.md", ".agents/**"],
|
|
124
125
|
}
|
|
125
126
|
```
|
|
126
127
|
|
|
127
|
-
## Configuration ownership
|
|
128
|
-
|
|
129
|
-
- `@textmode/lint` owns the ESLint flat config, Prettier options, markdownlint
|
|
130
|
-
rules, ignore baseline, and command behavior.
|
|
131
|
-
- `package.json` owns only the package name, description, and scripts that
|
|
132
|
-
delegate to `textmode-lint`.
|
|
133
|
-
|
|
134
|
-
Consumers should not declare `eslint`, `prettier`, `markdownlint-cli2`, or the
|
|
135
|
-
former `@textmode/eslint-config`, `@textmode/prettier-config`, and
|
|
136
|
-
`@textmode/markdownlint-config` packages.
|
|
137
|
-
|
|
138
|
-
## Deprecations
|
|
139
|
-
|
|
140
|
-
`@textmode/lint` replaces the following packages, which are deprecated:
|
|
141
|
-
|
|
142
|
-
| Package | Replacement |
|
|
143
|
-
| --------------------------------------------------------- | ---------------------- |
|
|
144
|
-
| [`@textmode/eslint-config`](../eslint-config/README.md) | `@textmode/lint` |
|
|
145
|
-
| [`@textmode/prettier-config`](../prettier-config/README.md) | `@textmode/lint` |
|
|
146
|
-
| [`@textmode/markdownlint-config`](../markdownlint-config/README.md) | `@textmode/lint` |
|
|
147
|
-
|
|
148
128
|
## Related packages
|
|
149
129
|
|
|
150
130
|
`@textmode/lint` works with the following textmode-tooling packages:
|
|
151
131
|
|
|
152
|
-
| Package
|
|
153
|
-
|
|
|
154
|
-
| [`@textmode/
|
|
155
|
-
| [`@textmode/tsconfig`](../tsconfig/README.md)
|
|
132
|
+
| Package | Relationship |
|
|
133
|
+
| --------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
134
|
+
| [`@textmode/release`](../release/README.md) | `textmode-release format-staged` uses `@textmode/lint` for the shared `pre-commit` hook |
|
|
135
|
+
| [`@textmode/tsconfig`](../tsconfig/README.md) | Consumers commonly run type checks alongside lint checks in local package scripts |
|
|
156
136
|
|
|
157
137
|
## License
|
|
158
138
|
|
|
@@ -161,11 +141,11 @@ The `@textmode/lint` package is licensed under the [CC0 1.0 Universal](./LICENSE
|
|
|
161
141
|
## Acknowledgements
|
|
162
142
|
|
|
163
143
|
- **[ESLint](https://eslint.org/)**
|
|
164
|
-
|
|
165
|
-
|
|
144
|
+
- The linter behind `textmode-lint lint`.
|
|
145
|
+
- License: [MIT](https://github.com/eslint/eslint/blob/main/LICENSE).
|
|
166
146
|
- **[Prettier](https://prettier.io/)**
|
|
167
|
-
|
|
168
|
-
|
|
147
|
+
- The formatter behind `textmode-lint format` and `format:check`.
|
|
148
|
+
- License: [MIT](https://github.com/prettier/prettier/blob/main/LICENSE).
|
|
169
149
|
- **[markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2)**
|
|
170
|
-
|
|
171
|
-
|
|
150
|
+
- The Markdown linter behind `textmode-lint lint:markdown`.
|
|
151
|
+
- License: [MIT](https://github.com/DavidAnson/markdownlint-cli2/blob/main/LICENSE).
|
package/markdownlint-cli2.jsonc
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"globs": ["**/*.md"],
|
|
7
7
|
"ignores": [
|
|
8
8
|
"node_modules/**",
|
|
9
|
+
".output/**",
|
|
10
|
+
".wxt/**",
|
|
9
11
|
"dist/**",
|
|
10
12
|
"api/**",
|
|
11
13
|
"coverage/**",
|
|
@@ -78,7 +80,6 @@
|
|
|
78
80
|
"MD044": {
|
|
79
81
|
"names": [
|
|
80
82
|
"textmode.js",
|
|
81
|
-
"textmode",
|
|
82
83
|
"WebGL",
|
|
83
84
|
"WebGL2",
|
|
84
85
|
"TypeScript",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textmode/lint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "CC0-1.0",
|
|
6
6
|
"description": "Shared linting and formatting for the textmode.js ecosystem (ESLint, Prettier, markdownlint-cli2).",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"markdownlint-cli2": "^0.23.0",
|
|
56
56
|
"markdownlint-cli2-formatter-default": "^0.0.6",
|
|
57
57
|
"prettier": "^3.9.5",
|
|
58
|
-
"typescript-eslint": "^8.
|
|
58
|
+
"typescript-eslint": "^8.66.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^26.1.2",
|