@ethang/eslint-config 21.6.0 → 21.7.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 CHANGED
@@ -40,6 +40,9 @@
40
40
  * 18 rules for **Solid**
41
41
  * `import solidConfig from "@ethang/eslint-config/config.solid.js";`
42
42
  * 18 rules from [eslint-plugin-solid](https://github.com/solidjs-community/eslint-plugin-solid)
43
+ * 15 rules from **Storybook**
44
+ * `import storybookConfig from "@ethang/eslint-config/config.storybook.js";`
45
+ * 15 rules from [eslint-plugin-storybook](https://github.com/storybookjs/eslint-plugin-storybook)
43
46
 
44
47
  # Install
45
48
 
@@ -0,0 +1,4 @@
1
+ import type { config } from "typescript-eslint";
2
+
3
+ declare const _default: ReturnType<typeof config>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import{a as o,b as r}from"./chunk-WK3YS7OG.js";import t from"eslint-plugin-storybook";import s from"typescript-eslint";var y=s.config({files:["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)"],ignores:o,languageOptions:r,plugins:{storybook:t},rules:{"storybook/await-interactions":"error","storybook/context-in-play-function":"error","storybook/csf-component":"error","storybook/default-exports":"error","storybook/hierarchy-separator":"error","storybook/meta-inline-properties":"error","storybook/meta-satisfies-type":"error","storybook/no-redundant-story-name":"error","storybook/no-stories-of":"error","storybook/no-title-property-in-meta":"error","storybook/no-uninstalled-addons":"error","storybook/prefer-pascal-case":"error","storybook/story-exports":"error","storybook/use-storybook-expect":"error","storybook/use-storybook-testing-library":"error"}});export{y as default};
2
+ //# sourceMappingURL=config.storybook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config.storybook.js"],"sourcesContent":["// @ts-nocheck\nimport { ignores, languageOptions } from \"./constants.js\";\nimport storybook from \"eslint-plugin-storybook\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n {\n files: [\"**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)\"],\nignores,\nlanguageOptions,\n plugins: {\n \"storybook\": storybook,\n },\n rules: {\n \"storybook/await-interactions\":\"error\",\"storybook/context-in-play-function\":\"error\",\"storybook/csf-component\":\"error\",\"storybook/default-exports\":\"error\",\"storybook/hierarchy-separator\":\"error\",\"storybook/meta-inline-properties\":\"error\",\"storybook/meta-satisfies-type\":\"error\",\"storybook/no-redundant-story-name\":\"error\",\"storybook/no-stories-of\":\"error\",\"storybook/no-title-property-in-meta\":\"error\",\"storybook/no-uninstalled-addons\":\"error\",\"storybook/prefer-pascal-case\":\"error\",\"storybook/story-exports\":\"error\",\"storybook/use-storybook-expect\":\"error\",\"storybook/use-storybook-testing-library\":\"error\"\n },\n },\n \n \n );\n"],"mappings":"+CAEA,OAAOA,MAAe,0BACtB,OAAOC,MAAc,oBAErB,IAAOC,EAAQD,EAAS,OACpB,CACA,MAAO,CAAC,uCAAuC,EACnD,QAAAE,EACA,gBAAAC,EACI,QAAS,CACP,UAAaJ,CACf,EACA,MAAO,CACL,+BAA+B,QAAQ,qCAAqC,QAAQ,0BAA0B,QAAQ,4BAA4B,QAAQ,gCAAgC,QAAQ,mCAAmC,QAAQ,gCAAgC,QAAQ,oCAAoC,QAAQ,0BAA0B,QAAQ,sCAAsC,QAAQ,kCAAkC,QAAQ,+BAA+B,QAAQ,0BAA0B,QAAQ,iCAAiC,QAAQ,0CAA0C,OACzlB,CACF,CAGA","names":["storybook","tseslint","config_storybook_default","ignores","languageOptions"]}
package/package.json CHANGED
@@ -33,6 +33,7 @@
33
33
  "eslint-plugin-react-hooks": "^5.2.0",
34
34
  "eslint-plugin-solid": "^0.14.5",
35
35
  "eslint-plugin-sonarjs": "3.0.2",
36
+ "eslint-plugin-storybook": "^0.12.0",
36
37
  "eslint-plugin-tailwindcss": "^3.18.0",
37
38
  "eslint-plugin-unicorn": "^58.0.0",
38
39
  "prettier": "^3.5.3",
@@ -59,7 +60,7 @@
59
60
  "url": "git+https://github.com/eglove/ethang-monorepo.git#master"
60
61
  },
61
62
  "type": "module",
62
- "version": "21.6.0",
63
+ "version": "21.7.1",
63
64
  "scripts": {
64
65
  "build": "bun build.ts && pnpm lint",
65
66
  "lint": "eslint . --fix && prettier src --write"