@gaia-react/lint 1.0.0 → 1.1.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.
@@ -0,0 +1,4 @@
1
+ import type { Config } from 'prettier';
2
+ declare const config: Config;
3
+ export default config;
4
+ //# sourceMappingURL=prettier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../src/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAErC,QAAA,MAAM,MAAM,EAAE,MAQb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,15 @@
1
+ // src/prettier.ts
2
+ var config = {
3
+ bracketSpacing: false,
4
+ experimentalTernaries: true,
5
+ plugins: ["prettier-plugin-tailwindcss"],
6
+ singleQuote: true,
7
+ tabWidth: 2,
8
+ tailwindFunctions: ["twJoin", "twMerge"],
9
+ trailingComma: "es5"
10
+ };
11
+ var prettier_default = config;
12
+ export {
13
+ prettier_default as default
14
+ };
15
+ //# sourceMappingURL=prettier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/prettier.ts"],"sourcesContent":["import type {Config} from 'prettier';\n\nconst config: Config = {\n bracketSpacing: false,\n experimentalTernaries: true,\n plugins: ['prettier-plugin-tailwindcss'],\n singleQuote: true,\n tabWidth: 2,\n tailwindFunctions: ['twJoin', 'twMerge'],\n trailingComma: 'es5',\n};\n\nexport default config;\n"],"mappings":";AAEA,IAAM,SAAiB;AAAA,EACrB,gBAAgB;AAAA,EAChB,uBAAuB;AAAA,EACvB,SAAS,CAAC,6BAA6B;AAAA,EACvC,aAAa;AAAA,EACb,UAAU;AAAA,EACV,mBAAmB,CAAC,UAAU,SAAS;AAAA,EACvC,eAAe;AACjB;AAEA,IAAO,mBAAQ;","names":[]}
@@ -0,0 +1,4 @@
1
+ import type { Config } from 'stylelint';
2
+ declare const config: Config;
3
+ export default config;
4
+ //# sourceMappingURL=stylelint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stylelint.d.ts","sourceRoot":"","sources":["../src/stylelint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEtC,QAAA,MAAM,MAAM,EAAE,MA0Bb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,33 @@
1
+ // src/stylelint.ts
2
+ var config = {
3
+ extends: [
4
+ "stylelint-config-standard",
5
+ "stylelint-config-clean-order",
6
+ "stylelint-config-tailwindcss"
7
+ ],
8
+ ignoreFiles: ["public/build/**/*.css"],
9
+ overrides: [
10
+ {
11
+ files: ["**/*.module.css"],
12
+ rules: {
13
+ "selector-class-pattern": "^[a-z][a-zA-Z0-9]+$"
14
+ }
15
+ }
16
+ ],
17
+ plugins: ["stylelint-order"],
18
+ rules: {
19
+ "at-rule-no-deprecated": null,
20
+ "no-descending-specificity": null,
21
+ "selector-pseudo-class-no-unknown": [
22
+ true,
23
+ {
24
+ ignorePseudoClasses: ["global", "local"]
25
+ }
26
+ ]
27
+ }
28
+ };
29
+ var stylelint_default = config;
30
+ export {
31
+ stylelint_default as default
32
+ };
33
+ //# sourceMappingURL=stylelint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/stylelint.ts"],"sourcesContent":["import type {Config} from 'stylelint';\n\nconst config: Config = {\n extends: [\n 'stylelint-config-standard',\n 'stylelint-config-clean-order',\n 'stylelint-config-tailwindcss',\n ],\n ignoreFiles: ['public/build/**/*.css'],\n overrides: [\n {\n files: ['**/*.module.css'],\n rules: {\n 'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$',\n },\n },\n ],\n plugins: ['stylelint-order'],\n rules: {\n 'at-rule-no-deprecated': null,\n 'no-descending-specificity': null,\n 'selector-pseudo-class-no-unknown': [\n true,\n {\n ignorePseudoClasses: ['global', 'local'],\n },\n ],\n },\n};\n\nexport default config;\n"],"mappings":";AAEA,IAAM,SAAiB;AAAA,EACrB,SAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,aAAa,CAAC,uBAAuB;AAAA,EACrC,WAAW;AAAA,IACT;AAAA,MACE,OAAO,CAAC,iBAAiB;AAAA,MACzB,OAAO;AAAA,QACL,0BAA0B;AAAA,MAC5B;AAAA,IACF;AAAA,EACF;AAAA,EACA,SAAS,CAAC,iBAAiB;AAAA,EAC3B,OAAO;AAAA,IACL,yBAAyB;AAAA,IACzB,6BAA6B;AAAA,IAC7B,oCAAoC;AAAA,MAClC;AAAA,MACA;AAAA,QACE,qBAAqB,CAAC,UAAU,OAAO;AAAA,MACzC;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,oBAAQ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaia-react/lint",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "GAIA's opinionated lint configuration.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,6 +9,14 @@
9
9
  ".": {
10
10
  "import": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts"
12
+ },
13
+ "./prettier": {
14
+ "import": "./dist/prettier.js",
15
+ "types": "./dist/prettier.d.ts"
16
+ },
17
+ "./stylelint": {
18
+ "import": "./dist/stylelint.js",
19
+ "types": "./dist/stylelint.d.ts"
12
20
  }
13
21
  },
14
22
  "files": [
@@ -22,11 +30,15 @@
22
30
  "peerDependencies": {
23
31
  "eslint": "^9.0.0",
24
32
  "prettier": "^3.0.0",
33
+ "stylelint": "^17.0.0",
25
34
  "typescript": "^5.0.0 || ^6.0.0"
26
35
  },
27
36
  "peerDependenciesMeta": {
28
37
  "prettier": {
29
38
  "optional": true
39
+ },
40
+ "stylelint": {
41
+ "optional": true
30
42
  }
31
43
  },
32
44
  "dependencies": {
@@ -50,9 +62,16 @@
50
62
  "eslint-plugin-testing-library": "7.16.2",
51
63
  "eslint-plugin-unicorn": "64.0.0",
52
64
  "eslint-plugin-unused-imports": "4.4.1",
53
- "eslint-plugin-you-dont-need-lodash-underscore": "6.14.0"
65
+ "eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
66
+ "prettier-plugin-tailwindcss": "0.7.3",
67
+ "stylelint-config-clean-order": "8.0.1",
68
+ "stylelint-config-standard": "40.0.0",
69
+ "stylelint-config-tailwindcss": "1.0.1",
70
+ "stylelint-order": "8.1.1"
54
71
  },
55
72
  "devDependencies": {
73
+ "@changesets/changelog-github": "^0.6.0",
74
+ "@changesets/cli": "^2.31.0",
56
75
  "@types/node": "^22.0.0",
57
76
  "eslint": "^9.39.0",
58
77
  "tsup": "^8.0.0",
@@ -83,6 +102,9 @@
83
102
  "build": "tsup && tsc --emitDeclarationOnly",
84
103
  "dev": "tsup --watch",
85
104
  "typecheck": "tsc --noEmit",
86
- "lint": "eslint --max-warnings=0 src"
105
+ "lint": "eslint --max-warnings=0 src",
106
+ "changeset": "changeset",
107
+ "version-packages": "changeset version",
108
+ "release": "pnpm build && changeset publish"
87
109
  }
88
110
  }