@gaia-react/lint 1.3.0 → 1.3.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/README.md +1 -19
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -28,10 +28,7 @@ export default defineConfig([
|
|
|
28
28
|
...lint.playwright,
|
|
29
29
|
...lint.styleHygiene,
|
|
30
30
|
...lint.guardrails,
|
|
31
|
-
...lint.betterTailwind({
|
|
32
|
-
entryPoint: './app/styles/tailwind.css',
|
|
33
|
-
ignore: ['plain-link', 'plain-table'],
|
|
34
|
-
}),
|
|
31
|
+
...lint.betterTailwind({entryPoint: './app/styles/tailwind.css'}),
|
|
35
32
|
...lint.prettier,
|
|
36
33
|
]);
|
|
37
34
|
```
|
|
@@ -153,21 +150,6 @@ tree-shakeable, conflate value and type space, and have well-known footguns
|
|
|
153
150
|
around numeric vs string enums and reverse mappings. Use a `const` object
|
|
154
151
|
plus a derived union type instead.
|
|
155
152
|
|
|
156
|
-
```ts
|
|
157
|
-
// flagged
|
|
158
|
-
enum Status {
|
|
159
|
-
Active,
|
|
160
|
-
Inactive,
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// preferred
|
|
164
|
-
const Status = {
|
|
165
|
-
Active: 'active',
|
|
166
|
-
Inactive: 'inactive',
|
|
167
|
-
} as const;
|
|
168
|
-
type Status = (typeof Status)[keyof typeof Status];
|
|
169
|
-
```
|
|
170
|
-
|
|
171
153
|
Opt out for a file or block:
|
|
172
154
|
|
|
173
155
|
```js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaia-react/lint",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "GAIA's opinionated lint configuration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.7.
|
|
45
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
|
|
46
46
|
"@eslint/config-helpers": "0.6.0",
|
|
47
47
|
"@eslint/js": "9.39.4",
|
|
48
|
-
"@vitest/eslint-plugin": "1.6.
|
|
48
|
+
"@vitest/eslint-plugin": "1.6.19",
|
|
49
49
|
"eslint-config-airbnb-extended": "3.1.0",
|
|
50
50
|
"eslint-config-prettier": "10.1.8",
|
|
51
51
|
"eslint-plugin-better-tailwindcss": "4.5.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"eslint-plugin-perfectionist": "5.9.0",
|
|
57
57
|
"eslint-plugin-playwright": "2.10.4",
|
|
58
58
|
"eslint-plugin-prefer-arrow-functions": "3.9.1",
|
|
59
|
-
"eslint-plugin-prettier": "5.5.
|
|
59
|
+
"eslint-plugin-prettier": "5.5.6",
|
|
60
60
|
"eslint-plugin-sonarjs": "4.0.3",
|
|
61
61
|
"eslint-plugin-storybook": "10.4.1",
|
|
62
62
|
"eslint-plugin-testing-library": "7.16.2",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
65
65
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
|
|
66
66
|
"prettier-plugin-tailwindcss": "0.8.0",
|
|
67
|
-
"stylelint-config-clean-order": "
|
|
67
|
+
"stylelint-config-clean-order": "10.0.0",
|
|
68
68
|
"stylelint-config-standard": "40.0.0",
|
|
69
69
|
"stylelint-config-tailwindcss": "1.0.1",
|
|
70
70
|
"stylelint-order": "8.1.1"
|