@nekoyasuii/config 0.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.
Files changed (37) hide show
  1. package/README.md +1 -0
  2. package/dist/chunk-41590bpf.js +70 -0
  3. package/dist/chunk-5wgwscd0.js +4 -0
  4. package/dist/chunk-8m4by0h8.js +138 -0
  5. package/dist/chunk-c8jq73qx.js +38 -0
  6. package/dist/chunk-xmts0xe5.js +565 -0
  7. package/dist/chunk-y56m56wh.js +430 -0
  8. package/dist/tools/oxfmt/index.d.ts +36 -0
  9. package/dist/tools/oxfmt/index.js +56 -0
  10. package/dist/tools/oxlint/config/anti-slop/index.d.ts +27 -0
  11. package/dist/tools/oxlint/config/anti-slop/index.js +7 -0
  12. package/dist/tools/oxlint/config/anti-slop/plugin.d.ts +2 -0
  13. package/dist/tools/oxlint/config/anti-slop/plugin.js +1944 -0
  14. package/dist/tools/oxlint/config/core/index.d.ts +558 -0
  15. package/dist/tools/oxlint/config/core/index.js +8 -0
  16. package/dist/tools/oxlint/config/index.d.ts +774 -0
  17. package/dist/tools/oxlint/config/index.js +57 -0
  18. package/dist/tools/oxlint/config/js-plugins/index.d.ts +446 -0
  19. package/dist/tools/oxlint/config/js-plugins/index.js +11 -0
  20. package/dist/tools/oxlint/config/react/index.d.ts +131 -0
  21. package/dist/tools/oxlint/config/react/index.js +7 -0
  22. package/dist/tools/oxlint/config/remix/index.d.ts +11 -0
  23. package/dist/tools/oxlint/config/remix/index.js +19 -0
  24. package/dist/tools/oxlint/config/tanstack/index.d.ts +17 -0
  25. package/dist/tools/oxlint/config/tanstack/index.js +25 -0
  26. package/dist/tools/oxlint/config/tanstack/js-plugins/index.d.ts +30 -0
  27. package/dist/tools/oxlint/config/tanstack/js-plugins/index.js +33 -0
  28. package/dist/tools/oxlint/rules/index.d.ts +2 -0
  29. package/dist/tools/oxlint/rules/index.js +482 -0
  30. package/dist/tools/shared/ignores.d.ts +1 -0
  31. package/dist/tools/shared/ignores.js +7 -0
  32. package/dist/tools/shared/tsconfig-aliases.d.ts +11 -0
  33. package/dist/tools/shared/types.d.ts +1 -0
  34. package/package.json +114 -0
  35. package/tsconfig.json +12 -0
  36. package/tsconfig.node.json +30 -0
  37. package/tsconfig.react.json +30 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # config
@@ -0,0 +1,70 @@
1
+ // tools/shared/ignores.ts
2
+ var ignorePatterns = [
3
+ "**/node_modules",
4
+ "**/.git",
5
+ "**/dist",
6
+ "**/build",
7
+ "**/out",
8
+ "**/.next",
9
+ "**/.open-next",
10
+ "**/.nuxt",
11
+ "**/.output",
12
+ "**/.svelte-kit",
13
+ "**/.vitepress/cache",
14
+ "**/.vitepress/dist",
15
+ "**/.turbo",
16
+ "**/.vercel",
17
+ "**/.netlify",
18
+ "**/.wrangler",
19
+ "**/.wrangler-dry-run",
20
+ "**/.alchemy",
21
+ "**/.docusaurus",
22
+ "**/.cache",
23
+ "**/.parcel-cache",
24
+ "**/.vite",
25
+ "**/.astro",
26
+ "**/_astro",
27
+ "**/public/build",
28
+ "**/storybook-static",
29
+ "**/_generated",
30
+ "**/*.gen.*",
31
+ "**/*.generated.*",
32
+ "**/*.auto.*",
33
+ "**/generated",
34
+ "**/auto-generated",
35
+ "**/codegen",
36
+ "**/__generated__",
37
+ "**/graphql-types.*",
38
+ "**/schema.d.ts",
39
+ "**/schema.graphql.d.ts",
40
+ "**/*.d.ts.map",
41
+ "**/.yarn",
42
+ "**/coverage",
43
+ "**/.nyc_output",
44
+ "**/.expo",
45
+ "**/.expo-shared",
46
+ "**/android/build",
47
+ "**/ios/build",
48
+ "**/DerivedData/**/*",
49
+ "**/bun.lock",
50
+ "**/bun.lockb",
51
+ "**/package-lock.json",
52
+ "**/yarn.lock",
53
+ "**/pnpm-lock.yaml",
54
+ "**/next-env.d.ts",
55
+ "**/worker-configuration.d.ts",
56
+ ".agent/**",
57
+ ".agents/**",
58
+ ".claude/**",
59
+ ".codex/**",
60
+ ".continue/**",
61
+ ".cursor/**",
62
+ ".gemini/**",
63
+ ".opencode/**",
64
+ ".pi/**",
65
+ ".roo/**",
66
+ ".windsurf/**",
67
+ "**/pnpm-workspace.yaml"
68
+ ];
69
+
70
+ export { ignorePatterns };
@@ -0,0 +1,4 @@
1
+ import { createRequire } from "node:module";
2
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
3
+
4
+ export { __require };
@@ -0,0 +1,138 @@
1
+ // tools/oxlint/config/react/index.ts
2
+ import { defineConfig } from "oxlint";
3
+ var reactConfig = defineConfig({
4
+ plugins: ["react", "react-perf", "jsx-a11y"],
5
+ rules: {
6
+ "jsx-a11y/alt-text": "error",
7
+ "jsx-a11y/anchor-ambiguous-text": "error",
8
+ "jsx-a11y/anchor-has-content": "error",
9
+ "jsx-a11y/anchor-is-valid": "error",
10
+ "jsx-a11y/aria-activedescendant-has-tabindex": "error",
11
+ "jsx-a11y/aria-props": "error",
12
+ "jsx-a11y/aria-proptypes": "error",
13
+ "jsx-a11y/aria-role": "error",
14
+ "jsx-a11y/aria-unsupported-elements": "error",
15
+ "jsx-a11y/autocomplete-valid": "error",
16
+ "jsx-a11y/click-events-have-key-events": "error",
17
+ "jsx-a11y/control-has-associated-label": "error",
18
+ "jsx-a11y/heading-has-content": "error",
19
+ "jsx-a11y/html-has-lang": "error",
20
+ "jsx-a11y/iframe-has-title": "error",
21
+ "jsx-a11y/img-redundant-alt": "error",
22
+ "jsx-a11y/interactive-supports-focus": "error",
23
+ "jsx-a11y/label-has-associated-control": "error",
24
+ "jsx-a11y/lang": "error",
25
+ "jsx-a11y/media-has-caption": "error",
26
+ "jsx-a11y/mouse-events-have-key-events": "error",
27
+ "jsx-a11y/no-access-key": "error",
28
+ "jsx-a11y/no-aria-hidden-on-focusable": "error",
29
+ "jsx-a11y/no-autofocus": "off",
30
+ "jsx-a11y/no-distracting-elements": "error",
31
+ "jsx-a11y/no-interactive-element-to-noninteractive-role": "error",
32
+ "jsx-a11y/no-noninteractive-element-interactions": "error",
33
+ "jsx-a11y/no-noninteractive-element-to-interactive-role": "error",
34
+ "jsx-a11y/no-noninteractive-tabindex": "error",
35
+ "jsx-a11y/no-redundant-roles": "error",
36
+ "jsx-a11y/no-static-element-interactions": "error",
37
+ "jsx-a11y/prefer-tag-over-role": "error",
38
+ "jsx-a11y/role-has-required-aria-props": "error",
39
+ "jsx-a11y/role-supports-aria-props": "error",
40
+ "jsx-a11y/scope": "error",
41
+ "jsx-a11y/tabindex-no-positive": "error",
42
+ "react-perf/jsx-no-jsx-as-prop": "off",
43
+ "react-perf/jsx-no-new-array-as-prop": "off",
44
+ "react-perf/jsx-no-new-function-as-prop": "off",
45
+ "react-perf/jsx-no-new-object-as-prop": "off",
46
+ "react/button-has-type": "error",
47
+ "react/capitalized-calls": "error",
48
+ "react/checked-requires-onchange-or-readonly": "error",
49
+ "react/display-name": "error",
50
+ "react/error-boundaries": "error",
51
+ "react/exhaustive-deps": "error",
52
+ "react/exhaustive-effect-dependencies": "error",
53
+ "react/forbid-component-props": "off",
54
+ "react/forbid-dom-props": "error",
55
+ "react/forbid-elements": "error",
56
+ "react/forward-ref-uses-ref": "off",
57
+ "react/function-component-definition": [
58
+ "error",
59
+ {
60
+ namedComponents: "arrow-function"
61
+ }
62
+ ],
63
+ "react/globals": "error",
64
+ "react/hook-use-state": "error",
65
+ "react/hooks": "error",
66
+ "react/iframe-missing-sandbox": "error",
67
+ "react/immutability": "error",
68
+ "react/incompatible-library": "error",
69
+ "react/invariant": "error",
70
+ "react/jsx-boolean-value": "off",
71
+ "react/jsx-curly-brace-presence": "error",
72
+ "react/jsx-filename-extension": "off",
73
+ "react/jsx-fragments": "error",
74
+ "react/jsx-key": "error",
75
+ "react/jsx-max-depth": "off",
76
+ "react/jsx-no-comment-textnodes": "error",
77
+ "react/jsx-no-constructed-context-values": "error",
78
+ "react/jsx-no-duplicate-props": "error",
79
+ "react/jsx-no-literals": "off",
80
+ "react/jsx-no-script-url": "error",
81
+ "react/jsx-no-target-blank": "error",
82
+ "react/jsx-no-undef": "error",
83
+ "react/jsx-no-useless-fragment": "error",
84
+ "react/jsx-pascal-case": "error",
85
+ "react/jsx-props-no-spread-multi": "error",
86
+ "react/jsx-props-no-spreading": "off",
87
+ "react/memo-dependencies": "error",
88
+ "react/no-array-index-key": "off",
89
+ "react/no-children-prop": "error",
90
+ "react/no-clone-element": "error",
91
+ "react/no-danger": "error",
92
+ "react/no-danger-with-children": "error",
93
+ "react/no-deriving-state-in-effects": "error",
94
+ "react/no-did-mount-set-state": "error",
95
+ "react/no-did-update-set-state": "error",
96
+ "react/no-direct-mutation-state": "error",
97
+ "react/no-find-dom-node": "error",
98
+ "react/no-is-mounted": "error",
99
+ "react/no-multi-comp": "off",
100
+ "react/no-namespace": "error",
101
+ "react/no-object-type-as-default-prop": "error",
102
+ "react/no-react-children": "error",
103
+ "react/no-redundant-should-component-update": "error",
104
+ "react/no-render-return-value": "error",
105
+ "react/no-set-state": "error",
106
+ "react/no-string-refs": "error",
107
+ "react/no-this-in-sfc": "error",
108
+ "react/no-unescaped-entities": "error",
109
+ "react/no-unknown-property": "off",
110
+ "react/no-unsafe": "error",
111
+ "react/no-unstable-nested-components": "error",
112
+ "react/no-will-update-set-state": "error",
113
+ "react/only-export-components": "off",
114
+ "react/prefer-es6-class": "error",
115
+ "react/prefer-function-component": "error",
116
+ "react/preserve-manual-memoization": "error",
117
+ "react/purity": "error",
118
+ "react/react-in-jsx-scope": "off",
119
+ "react/refs": "error",
120
+ "react/rule-suppression": "error",
121
+ "react/rules-of-hooks": "error",
122
+ "react/self-closing-comp": "error",
123
+ "react/set-state-in-effect": "error",
124
+ "react/set-state-in-render": "error",
125
+ "react/state-in-constructor": "error",
126
+ "react/static-components": "error",
127
+ "react/style-prop-object": "error",
128
+ "react/syntax": "error",
129
+ "react/todo": "error",
130
+ "react/unsupported-syntax": "error",
131
+ "react/use-memo": "error",
132
+ "react/void-dom-elements-no-children": "error",
133
+ "react/void-use-memo": "error",
134
+ "react/jsx-handler-names": "off"
135
+ }
136
+ });
137
+
138
+ export { reactConfig };
@@ -0,0 +1,38 @@
1
+ // tools/oxlint/config/anti-slop/index.ts
2
+ import { existsSync } from "node:fs";
3
+ import { fileURLToPath } from "node:url";
4
+ import { defineConfig } from "oxlint";
5
+ var pluginCandidates = [
6
+ new URL("plugin.js", import.meta.url),
7
+ new URL("tools/oxlint/config/anti-slop/plugin.js", import.meta.url)
8
+ ];
9
+ var antiSlopPluginPath = fileURLToPath(pluginCandidates.find((candidate) => existsSync(candidate)) ?? pluginCandidates[0]);
10
+ var antiSlopConfig = defineConfig({
11
+ jsPlugins: [
12
+ {
13
+ name: "anti-slop",
14
+ specifier: antiSlopPluginPath
15
+ }
16
+ ],
17
+ rules: {
18
+ "anti-slop/no-chained-type-assertions": "error",
19
+ "anti-slop/no-conditional-empty-object-spread": "error",
20
+ "anti-slop/no-known-value-widening": "error",
21
+ "anti-slop/no-module-mocking": "error",
22
+ "anti-slop/no-object-parameters": "error",
23
+ "anti-slop/no-reflect-apply": "error",
24
+ "anti-slop/no-reflect-get": "error",
25
+ "anti-slop/no-runtime-typeof": ["error", { allowInTypeGuards: true }],
26
+ "anti-slop/no-shape-in-symbol-names": "error",
27
+ "anti-slop/no-unknown-parameters": "error",
28
+ "anti-slop/no-unknown-returns": "error",
29
+ "anti-slop/no-unknown-type-aliases": "error",
30
+ "anti-slop/no-unsafe-dictionary-type": "error",
31
+ "anti-slop/no-widen-then-assert": "error",
32
+ "anti-slop/require-safety-comment-for-type-assertion": "error",
33
+ "typescript/consistent-indexed-object-style": "off",
34
+ "unicorn/no-immediate-mutation": "off"
35
+ }
36
+ });
37
+
38
+ export { antiSlopConfig };