@bratislava/eslint-config 0.11.0 → 0.14.0

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.
Files changed (3) hide show
  1. package/README.md +16 -0
  2. package/index.js +17 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -32,6 +32,22 @@ import {
32
32
  } from "@bratislava/eslint-config";
33
33
  ```
34
34
 
35
+ ## Prettier
36
+
37
+ `prettierBase` is a shared Prettier config object. Spread it in your `prettier.config.mjs` and add project-specific options:
38
+
39
+ ```js
40
+ // prettier.config.mjs
41
+ import { prettierBase } from '@bratislava/eslint-config'
42
+
43
+ export default {
44
+ ...prettierBase,
45
+ // project-specific overrides, e.g.:
46
+ // plugins: ['prettier-plugin-tailwindcss'],
47
+ // tailwindStylesheet: './src/pages/globals.css',
48
+ }
49
+ ```
50
+
35
51
  ## What's Included
36
52
 
37
53
  - **ESLint recommended** rules
package/index.js CHANGED
@@ -131,6 +131,23 @@ export const disabledRules = {
131
131
  "@typescript-eslint/explicit-function-return-type": "off",
132
132
  };
133
133
 
134
+ /**
135
+ * Shared Prettier base configuration for all Bratislava projects.
136
+ * Spread this in your Prettier config and add project-specific options.
137
+ *
138
+ * @example
139
+ * // prettier.config.mjs
140
+ * import { prettierBase } from '@bratislava/eslint-config'
141
+ * export default { ...prettierBase, tailwindStylesheet: './src/pages/globals.css' }
142
+ */
143
+ export const prettierBase = {
144
+ trailingComma: "all",
145
+ tabWidth: 2,
146
+ semi: false,
147
+ singleQuote: true,
148
+ printWidth: 100,
149
+ };
150
+
134
151
  /**
135
152
  * Base configuration for all projects.
136
153
  * Includes ESLint recommended, TypeScript strict, Prettier, security plugins.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bratislava/eslint-config",
3
- "version": "0.11.0",
3
+ "version": "0.14.0",
4
4
  "description": "Base ESLint configuration for Bratislava projects",
5
5
  "keywords": [
6
6
  "eslint",