@noodlestan/prettier-config 0.0.1 → 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/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # CHANGELOG
2
+
3
+ ## 0.1.1
4
+
5
+ ### Changed
6
+
7
+ - **Update dependencies** - `prettier@3.9.10` cleans up npm audit.
8
+
9
+ ## 0.1.0
10
+
11
+ ### Added
12
+
13
+ - **Markdown formatting for `*.art` and `*.tart`** — source and template files are parsed as Markdown instead of being skipped as unknown extensions.
14
+
15
+ ## 0.0.1
16
+
17
+ ### Added
18
+
19
+ - **Base formatting rules** — 2-space indentation and 100-column wrapping for prose, JSON, Markdown, YAML, and HTML; semicolons, single quotes, trailing commas everywhere, and `arrowParens: "avoid"`.
20
+ - **Tab indentation for JavaScript and TypeScript** — `*.js`, `*.cjs`, `*.mjs`, `*.mts`, `*.ts`, and `*.tsx` are formatted with tabs; every other file type uses spaces.
21
+ - **One entry point** — `src/index.cjs` holds the rules directly and resolves for ESM imports, CJS `require`, and the `prettier` field of `package.json` alike, with no build step and no second copy to keep in sync.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Noodlestan Prettier Config
1
+ # @noodlestan/prettier-config
2
2
 
3
3
  > Noodlestan's canonical base Prettier formatting configuration.
4
4
 
@@ -18,9 +18,7 @@ Then point your repository or package at the config from the `prettier` field of
18
18
  }
19
19
  ```
20
20
 
21
- **⚠️ Note:** delete your repository's or library's own `.prettierrc` (or `.prettierrc.json`,
22
- `.prettierrc.js`, …). A local Prettier config file shadows the `prettier` field of
23
- `package.json`.
21
+ **⚠️ Note:** delete your repository's or library's own `.prettierrc` (or `.prettierrc.json`, `.prettierrc.js`, …). A local Prettier config file shadows the `prettier` field of `package.json`.
24
22
 
25
23
  ### Peer Depedencies
26
24
 
package/package.json CHANGED
@@ -1,24 +1,39 @@
1
1
  {
2
2
  "name": "@noodlestan/prettier-config",
3
- "version": "0.0.1",
3
+ "version": "0.1.1",
4
4
  "description": "Noodlestan's base Prettier formatting configuration.",
5
+ "keywords": [
6
+ "prettier",
7
+ "formatting",
8
+ "tooling",
9
+ "configs"
10
+ ],
5
11
  "author": "Noodlestan Collective",
6
12
  "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/noodlestan/workspace-tooling.git",
16
+ "directory": "configs/prettier-config"
17
+ },
7
18
  "private": false,
8
19
  "publishConfig": {
9
20
  "access": "public"
10
21
  },
22
+ "files": [
23
+ "src",
24
+ "README.md",
25
+ "LICENSE-MIT",
26
+ "CHANGELOG.md"
27
+ ],
28
+ "engines": {
29
+ "node": ">=22"
30
+ },
11
31
  "main": "./src/index.cjs",
12
- "prettier": "./src/index.cjs",
13
32
  "exports": {
14
33
  ".": "./src/index.cjs",
15
34
  "./package.json": "./package.json"
16
35
  },
17
- "files": [
18
- "src",
19
- "README.md",
20
- "LICENSE-MIT"
21
- ],
36
+ "prettier": "./src/index.cjs",
22
37
  "scripts": {
23
38
  "lint": "prettier . -c",
24
39
  "lint:fix": "prettier . -c --write",
@@ -26,6 +41,6 @@
26
41
  "ci": "npm run lint"
27
42
  },
28
43
  "peerDependencies": {
29
- "prettier": "^3.8.4"
44
+ "prettier": "^3.9.10"
30
45
  }
31
46
  }
package/src/index.cjs CHANGED
@@ -7,6 +7,12 @@ module.exports = {
7
7
  trailingComma: 'all',
8
8
  arrowParens: 'avoid',
9
9
  overrides: [
10
+ {
11
+ files: ['*.art', '*.tart'],
12
+ options: {
13
+ parser: 'markdown',
14
+ },
15
+ },
10
16
  {
11
17
  files: ['*.js', '*.cjs', '*.mjs', '*.ts', '*.mts', '*.tsx'],
12
18
  options: {