@textmode/lint 0.1.0 → 0.1.2

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 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
  | [![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?logo=javascript&logoColor=black)](https://developer.mozilla.org/en-US/docs/Web/JavaScript) [![ESLint](https://img.shields.io/badge/ESLint-4B32C3?logo=eslint&logoColor=white)](https://eslint.org/) [![Prettier](https://img.shields.io/badge/Prettier-F7B93E?logo=prettier&logoColor=black)](https://prettier.io/) [![markdownlint](https://img.shields.io/badge/markdownlint-000000?logo=markdownlint&logoColor=white)](https://github.com/DavidAnson/markdownlint) | [![docs](https://img.shields.io/badge/docs-vitepress-646cff?logo=vitepress&logoColor=white)](https://code.textmode.art/) [![Discord](https://img.shields.io/discord/1357070706181017691?color=5865F2&label=Discord&logo=discord&logoColor=white)](https://discord.gg/sjrw8QXNks) | [![ko-fi](https://shields.io/badge/ko--fi-donate-ff5f5f?logo=ko-fi)](https://ko-fi.com/V7V8JG2FY) [![GitHub-sponsors](https://img.shields.io/badge/sponsor-30363D?logo=GitHub-Sponsors&logoColor=#EA4AAA)](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 | Relationship |
153
- | ------------------------------------------------------------------- | -------------------------------------------------------- |
154
- | [`@textmode/tooling-scripts`](../tooling-scripts/README.md) | `textmode-project check` runs the `format:check`, `lint`, and `lint:markdown` scripts |
155
- | [`@textmode/tsconfig`](../tsconfig/README.md) | `textmode-types check` runs alongside the lint checks |
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
- - The linter behind `textmode-lint lint`.
165
- - License: [MIT](https://github.com/eslint/eslint/blob/main/LICENSE).
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
- - The formatter behind `textmode-lint format` and `format:check`.
168
- - License: [MIT](https://github.com/prettier/prettier/blob/main/LICENSE).
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
- - The Markdown linter behind `textmode-lint lint:markdown`.
171
- - License: [MIT](https://github.com/DavidAnson/markdownlint-cli2/blob/main/LICENSE).
150
+ - The Markdown linter behind `textmode-lint lint:markdown`.
151
+ - License: [MIT](https://github.com/DavidAnson/markdownlint-cli2/blob/main/LICENSE).
@@ -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.0",
3
+ "version": "0.1.2",
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).",
@@ -50,12 +50,12 @@
50
50
  "dependencies": {
51
51
  "@eslint/js": "^10.0.1",
52
52
  "eslint": "^10.7.0",
53
- "eslint-plugin-jsdoc": "^63.3.1",
54
- "globals": "^17.9.0",
53
+ "eslint-plugin-jsdoc": "^64.3.4",
54
+ "globals": "^17.11.0",
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.65.0"
58
+ "typescript-eslint": "^8.69.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^26.1.2",