ultracite 3.3.1 → 3.3.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/README.md CHANGED
@@ -51,20 +51,19 @@ code --install-extension stylelint.vscode-stylelint
51
51
  Create an `eslint.config.mjs` with the following contents:
52
52
 
53
53
  ```js
54
- import ultracite from 'ultracite';
54
+ export { default } from 'ultracite';
55
+ ```
55
56
 
56
- export default ultracite;
57
+ Create a `prettier.config.mjs` with the following contents:
58
+
59
+ ```js
60
+ export { default } from 'ultracite/prettier';
57
61
  ```
58
62
 
59
- Add the following to your `package.json`:
63
+ Create a `stylelint.config.mjs` with the following contents:
60
64
 
61
- ```json
62
- {
63
- "prettier": "ultracite/prettier",
64
- "stylelint": {
65
- "extends": "ultracite/stylelint"
66
- }
67
- }
65
+ ```js
66
+ export { default } from 'ultracite/stylelint';
68
67
  ```
69
68
 
70
69
  Ultracite is designed to be used with [VS Code](https://code.visualstudio.com/), and includes a `.vscode/settings.json` file that enables full formatting on save. Create a `.vscode/settings.json` file with the following contents:
@@ -0,0 +1,14 @@
1
+ /** @type {import('prettier').Config} */
2
+ const config = {
3
+ tabWidth: 2,
4
+ useTabs: false,
5
+ semi: true,
6
+ singleQuote: true,
7
+ trailingComma: 'es5',
8
+ bracketSpacing: true,
9
+ arrowParens: 'always',
10
+ proseWrap: 'never',
11
+ printWidth: 80,
12
+ };
13
+
14
+ export { config as default };
@@ -0,0 +1 @@
1
+ var e={tabWidth:2,useTabs:!1,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,arrowParens:"always",proseWrap:"never",printWidth:80},a=e;export{a as default};
@@ -0,0 +1,36 @@
1
+ /** @type {import('stylelint').Config} */
2
+ const config = {
3
+ plugins: ['stylelint-prettier'],
4
+ extends: ['stylelint-config-standard', 'stylelint-config-idiomatic-order'],
5
+ rules: {
6
+ 'at-rule-no-unknown': [
7
+ true,
8
+ {
9
+ ignoreAtRules: [
10
+ 'tailwind',
11
+ 'apply',
12
+ 'layer',
13
+ 'variants',
14
+ 'responsive',
15
+ 'screen',
16
+ ],
17
+ },
18
+ ],
19
+ 'declaration-property-value-no-unknown': true,
20
+ 'no-descending-specificity': null,
21
+ 'declaration-block-no-redundant-longhand-properties': [
22
+ true,
23
+ {
24
+ ignoreShorthands: ['/flex/'],
25
+ },
26
+ ],
27
+ 'selector-pseudo-class-no-unknown': [
28
+ true,
29
+ {
30
+ ignorePseudoClasses: ['global'],
31
+ },
32
+ ],
33
+ },
34
+ };
35
+
36
+ export { config as default };
@@ -0,0 +1 @@
1
+ var e={plugins:["stylelint-prettier"],extends:["stylelint-config-standard","stylelint-config-idiomatic-order"],rules:{"at-rule-no-unknown":[!0,{ignoreAtRules:["tailwind","apply","layer","variants","responsive","screen"]}],"declaration-property-value-no-unknown":!0,"no-descending-specificity":null,"declaration-block-no-redundant-longhand-properties":[!0,{ignoreShorthands:["/flex/"]}],"selector-pseudo-class-no-unknown":[!0,{ignorePseudoClasses:["global"]}]}},n=e;export{n as default};
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "name": "ultracite",
42
42
  "description": "Strict, opinionated ESLint config for modern TypeScript apps.",
43
- "version": "3.3.1",
43
+ "version": "3.3.3",
44
44
  "publishConfig": {
45
45
  "access": "public",
46
46
  "registry": "https://registry.npmjs.org/"
@@ -65,6 +65,11 @@
65
65
  "files": [
66
66
  "dist"
67
67
  ],
68
+ "exports": {
69
+ ".": "./dist/eslint.config.mjs",
70
+ "./prettier": "./dist/prettier.config.mjs",
71
+ "./stylelint": "./dist/stylelint.config.mjs"
72
+ },
68
73
  "author": "Hayden Bleasel <hello@haydenbleasel.com>",
69
74
  "license": "ISC",
70
75
  "bugs": {
@@ -1,11 +0,0 @@
1
- declare let tabWidth: number;
2
- declare let useTabs: boolean;
3
- declare let semi: boolean;
4
- declare let singleQuote: boolean;
5
- declare let trailingComma: string;
6
- declare let bracketSpacing: boolean;
7
- declare let arrowParens: string;
8
- declare let proseWrap: string;
9
- declare let printWidth: number;
10
-
11
- export { arrowParens, bracketSpacing, printWidth, proseWrap, semi, singleQuote, tabWidth, trailingComma, useTabs };
package/dist/prettier.mjs DELETED
@@ -1 +0,0 @@
1
- var t=(a,e)=>()=>(e||a((e={exports:{}}).exports,e),e.exports);var s=t((n,r)=>{r.exports={tabWidth:2,useTabs:!1,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,arrowParens:"always",proseWrap:"never",printWidth:80}});export default s();
@@ -1,18 +0,0 @@
1
- declare let plugins: string[];
2
- declare let _extends: string[];
3
-
4
- declare let rules: {
5
- 'at-rule-no-unknown': (boolean | {
6
- ignoreAtRules: string[];
7
- })[];
8
- 'declaration-property-value-no-unknown': boolean;
9
- 'no-descending-specificity': null;
10
- 'declaration-block-no-redundant-longhand-properties': (boolean | {
11
- ignoreShorthands: string[];
12
- })[];
13
- 'selector-pseudo-class-no-unknown': (boolean | {
14
- ignorePseudoClasses: string[];
15
- })[];
16
- };
17
-
18
- export { _extends as extends, plugins, rules };
@@ -1 +0,0 @@
1
- var r=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var t=r((s,n)=>{n.exports={plugins:["stylelint-prettier"],extends:["stylelint-config-standard","stylelint-config-idiomatic-order"],rules:{"at-rule-no-unknown":[!0,{ignoreAtRules:["tailwind","apply","layer","variants","responsive","screen"]}],"declaration-property-value-no-unknown":!0,"no-descending-specificity":null,"declaration-block-no-redundant-longhand-properties":[!0,{ignoreShorthands:["/flex/"]}],"selector-pseudo-class-no-unknown":[!0,{ignorePseudoClasses:["global"]}]}}});export default t();