eslint-config-everything 0.0.0 → 0.0.6

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.

Potentially problematic release.


This version of eslint-config-everything might be problematic. Click here for more details.

Files changed (66) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +3 -185
  3. package/dist/chunk-7D4SUZUM.js +38 -0
  4. package/dist/chunk-7D4SUZUM.js.map +1 -0
  5. package/dist/chunk-C6JVFMYP.js +10 -0
  6. package/dist/chunk-C6JVFMYP.js.map +1 -0
  7. package/dist/chunk-E2655ZCO.js +3002 -0
  8. package/dist/chunk-E2655ZCO.js.map +1 -0
  9. package/dist/chunk-GO5ZEIJP.js +20 -0
  10. package/dist/chunk-GO5ZEIJP.js.map +1 -0
  11. package/dist/chunk-GVUZG6ZQ.js +12 -0
  12. package/dist/chunk-GVUZG6ZQ.js.map +1 -0
  13. package/dist/chunk-PVI3JF33.js +436 -0
  14. package/dist/chunk-PVI3JF33.js.map +1 -0
  15. package/dist/chunk-R4EOV26M.js +9 -0
  16. package/dist/chunk-R4EOV26M.js.map +1 -0
  17. package/dist/chunk-S5OOXTIG.js +347 -0
  18. package/dist/chunk-S5OOXTIG.js.map +1 -0
  19. package/dist/chunk-SKRJ7XOK.js +15 -0
  20. package/dist/chunk-SKRJ7XOK.js.map +1 -0
  21. package/dist/configs/javascript.d.ts +16 -0
  22. package/dist/configs/javascript.js +13 -0
  23. package/dist/configs/javascript.js.map +1 -0
  24. package/dist/configs/next.d.ts +56 -0
  25. package/dist/configs/next.js +7697 -0
  26. package/dist/configs/next.js.map +1 -0
  27. package/dist/configs/react-internal.d.ts +44 -0
  28. package/dist/configs/react-internal.js +53 -0
  29. package/dist/configs/react-internal.js.map +1 -0
  30. package/dist/configs/turbo.d.ts +35 -0
  31. package/dist/configs/turbo.js +39 -0
  32. package/dist/configs/turbo.js.map +1 -0
  33. package/dist/configs/typescript.d.ts +16 -0
  34. package/dist/configs/typescript.js +21 -0
  35. package/dist/configs/typescript.js.map +1 -0
  36. package/dist/index.d.ts +8 -0
  37. package/dist/index.js +13 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/objects/base.d.ts +9 -0
  40. package/dist/objects/base.js +9 -0
  41. package/dist/objects/base.js.map +1 -0
  42. package/dist/objects/ignores.d.ts +5 -0
  43. package/dist/objects/ignores.js +8 -0
  44. package/dist/objects/ignores.js.map +1 -0
  45. package/dist/objects/onlyWarn.d.ts +9 -0
  46. package/dist/objects/onlyWarn.js +8 -0
  47. package/dist/objects/onlyWarn.js.map +1 -0
  48. package/dist/objects/perfectionist.d.ts +7 -0
  49. package/dist/objects/perfectionist.js +8 -0
  50. package/dist/objects/perfectionist.js.map +1 -0
  51. package/dist/rules/base.d.ts +432 -0
  52. package/dist/rules/base.js +8 -0
  53. package/dist/rules/base.js.map +1 -0
  54. package/dist/rules/typescript.d.ts +121 -0
  55. package/dist/rules/typescript.js +126 -0
  56. package/dist/rules/typescript.js.map +1 -0
  57. package/package.json +43 -32
  58. package/.editorconfig +0 -10
  59. package/.gitattributes +0 -4
  60. package/.prettierrc +0 -6
  61. package/.yarn/sdks/integrations.yml +0 -5
  62. package/.yarn/sdks/prettier/bin/prettier.cjs +0 -32
  63. package/.yarn/sdks/prettier/index.cjs +0 -32
  64. package/.yarn/sdks/prettier/package.json +0 -7
  65. package/.yarnrc.yml +0 -1
  66. package/eslint.config.js +0 -198
@@ -0,0 +1,44 @@
1
+ import pluginReact from 'eslint-plugin-react';
2
+ import pluginReactHooks from 'eslint-plugin-react-hooks';
3
+ import globals from 'globals';
4
+ import tseslint from 'typescript-eslint';
5
+ import { javascript } from './javascript.js';
6
+ import '../objects/base.js';
7
+ import '../rules/base.js';
8
+ import '../objects/ignores.js';
9
+ import '../objects/onlyWarn.js';
10
+ import 'eslint-plugin-only-warn';
11
+ import '../objects/perfectionist.js';
12
+ import 'eslint-plugin-perfectionist';
13
+
14
+ /**
15
+ * A custom ESLint configuration for libraries that use React.
16
+ *
17
+ * @type {import("eslint").Linter.Config[]} */
18
+ const config = [
19
+ ...javascript,
20
+ ...tseslint.configs.recommended,
21
+ pluginReact.configs.flat.recommended,
22
+ {
23
+ languageOptions: {
24
+ ...pluginReact.configs.flat.recommended.languageOptions,
25
+ globals: {
26
+ ...globals.serviceworker,
27
+ ...globals.browser,
28
+ },
29
+ },
30
+ },
31
+ {
32
+ plugins: {
33
+ "react-hooks": pluginReactHooks,
34
+ },
35
+ rules: {
36
+ ...pluginReactHooks.configs.recommended.rules,
37
+ // React scope no longer necessary with new JSX transform.
38
+ "react/react-in-jsx-scope": "off",
39
+ },
40
+ settings: { react: { version: "detect" } },
41
+ },
42
+ ];
43
+
44
+ export { config };
@@ -0,0 +1,53 @@
1
+ import {
2
+ require_globals
3
+ } from "../chunk-E2655ZCO.js";
4
+ import {
5
+ javascript
6
+ } from "../chunk-GO5ZEIJP.js";
7
+ import {
8
+ require_src
9
+ } from "../chunk-S5OOXTIG.js";
10
+ import "../chunk-GVUZG6ZQ.js";
11
+ import "../chunk-C6JVFMYP.js";
12
+ import "../chunk-SKRJ7XOK.js";
13
+ import "../chunk-PVI3JF33.js";
14
+ import "../chunk-R4EOV26M.js";
15
+ import {
16
+ __toESM
17
+ } from "../chunk-7D4SUZUM.js";
18
+
19
+ // src/configs/react-internal.js
20
+ var import_js = __toESM(require_src(), 1);
21
+ var import_globals = __toESM(require_globals(), 1);
22
+ import pluginReact from "eslint-plugin-react";
23
+ import pluginReactHooks from "eslint-plugin-react-hooks";
24
+ import tseslint from "typescript-eslint";
25
+ var config = [
26
+ ...javascript,
27
+ ...tseslint.configs.recommended,
28
+ pluginReact.configs.flat.recommended,
29
+ {
30
+ languageOptions: {
31
+ ...pluginReact.configs.flat.recommended.languageOptions,
32
+ globals: {
33
+ ...import_globals.default.serviceworker,
34
+ ...import_globals.default.browser
35
+ }
36
+ }
37
+ },
38
+ {
39
+ plugins: {
40
+ "react-hooks": pluginReactHooks
41
+ },
42
+ rules: {
43
+ ...pluginReactHooks.configs.recommended.rules,
44
+ // React scope no longer necessary with new JSX transform.
45
+ "react/react-in-jsx-scope": "off"
46
+ },
47
+ settings: { react: { version: "detect" } }
48
+ }
49
+ ];
50
+ export {
51
+ config
52
+ };
53
+ //# sourceMappingURL=react-internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/configs/react-internal.js"],"sourcesContent":["import js from \"@eslint/js\";\nimport pluginReact from \"eslint-plugin-react\";\nimport pluginReactHooks from \"eslint-plugin-react-hooks\";\nimport globals from \"globals\";\nimport tseslint from \"typescript-eslint\";\n\nimport { javascript } from \"./javascript.js\";\n\n/**\n * A custom ESLint configuration for libraries that use React.\n *\n * @type {import(\"eslint\").Linter.Config[]} */\nexport const config = [\n ...javascript,\n ...tseslint.configs.recommended,\n pluginReact.configs.flat.recommended,\n {\n languageOptions: {\n ...pluginReact.configs.flat.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n },\n {\n plugins: {\n \"react-hooks\": pluginReactHooks,\n },\n rules: {\n ...pluginReactHooks.configs.recommended.rules,\n // React scope no longer necessary with new JSX transform.\n \"react/react-in-jsx-scope\": \"off\",\n },\n settings: { react: { version: \"detect\" } },\n },\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,gBAAe;AAGf,qBAAoB;AAFpB,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAE7B,OAAO,cAAc;AAQd,IAAM,SAAS;AAAA,EACpB,GAAG;AAAA,EACH,GAAG,SAAS,QAAQ;AAAA,EACpB,YAAY,QAAQ,KAAK;AAAA,EACzB;AAAA,IACE,iBAAiB;AAAA,MACf,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,MACxC,SAAS;AAAA,QACP,GAAG,eAAAA,QAAQ;AAAA,QACX,GAAG,eAAAA,QAAQ;AAAA,MACb;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,SAAS;AAAA,MACP,eAAe;AAAA,IACjB;AAAA,IACA,OAAO;AAAA,MACL,GAAG,iBAAiB,QAAQ,YAAY;AAAA;AAAA,MAExC,4BAA4B;AAAA,IAC9B;AAAA,IACA,UAAU,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE;AAAA,EAC3C;AACF;","names":["globals"]}
@@ -0,0 +1,35 @@
1
+ import js from '@eslint/js';
2
+ import onlyWarnPlugin from 'eslint-plugin-only-warn';
3
+ import perfectionistPlugin from 'eslint-plugin-perfectionist';
4
+ import turboPlugin from 'eslint-plugin-turbo';
5
+ import tseslint from 'typescript-eslint';
6
+
7
+ /**
8
+ * A shared ESLint configuration for the repository.
9
+ *
10
+ * @type {import("eslint").Linter.Config[]}
11
+ * */
12
+ const config = [
13
+ js.configs.recommended,
14
+ ...tseslint.configs.strict,
15
+ ...tseslint.configs.stylistic,
16
+ perfectionistPlugin.configs["recommended-natural"],
17
+ {
18
+ plugins: {
19
+ turbo: turboPlugin,
20
+ },
21
+ rules: {
22
+ "turbo/no-undeclared-env-vars": "warn",
23
+ },
24
+ },
25
+ {
26
+ plugins: {
27
+ onlyWarn: onlyWarnPlugin,
28
+ },
29
+ },
30
+ {
31
+ ignores: ["dist/**"],
32
+ },
33
+ ];
34
+
35
+ export { config };
@@ -0,0 +1,39 @@
1
+ import {
2
+ require_src
3
+ } from "../chunk-S5OOXTIG.js";
4
+ import {
5
+ __toESM
6
+ } from "../chunk-7D4SUZUM.js";
7
+
8
+ // src/configs/turbo.js
9
+ var import_js = __toESM(require_src(), 1);
10
+ import onlyWarn from "eslint-plugin-only-warn";
11
+ import perfectionist from "eslint-plugin-perfectionist";
12
+ import turboPlugin from "eslint-plugin-turbo";
13
+ import tseslint from "typescript-eslint";
14
+ var config = [
15
+ import_js.default.configs.recommended,
16
+ ...tseslint.configs.strict,
17
+ ...tseslint.configs.stylistic,
18
+ perfectionist.configs["recommended-natural"],
19
+ {
20
+ plugins: {
21
+ turbo: turboPlugin
22
+ },
23
+ rules: {
24
+ "turbo/no-undeclared-env-vars": "warn"
25
+ }
26
+ },
27
+ {
28
+ plugins: {
29
+ onlyWarn
30
+ }
31
+ },
32
+ {
33
+ ignores: ["dist/**"]
34
+ }
35
+ ];
36
+ export {
37
+ config
38
+ };
39
+ //# sourceMappingURL=turbo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/configs/turbo.js"],"sourcesContent":["import js from \"@eslint/js\";\nimport onlyWarn from \"eslint-plugin-only-warn\";\nimport perfectionist from \"eslint-plugin-perfectionist\";\nimport turboPlugin from \"eslint-plugin-turbo\";\nimport tseslint from \"typescript-eslint\";\n\n/**\n * A shared ESLint configuration for the repository.\n *\n * @type {import(\"eslint\").Linter.Config[]}\n * */\nexport const config = [\n js.configs.recommended,\n ...tseslint.configs.strict,\n ...tseslint.configs.stylistic,\n perfectionist.configs[\"recommended-natural\"],\n {\n plugins: {\n turbo: turboPlugin,\n },\n rules: {\n \"turbo/no-undeclared-env-vars\": \"warn\",\n },\n },\n {\n plugins: {\n onlyWarn,\n },\n },\n {\n ignores: [\"dist/**\"],\n },\n];\n"],"mappings":";;;;;;;;AAAA,gBAAe;AACf,OAAO,cAAc;AACrB,OAAO,mBAAmB;AAC1B,OAAO,iBAAiB;AACxB,OAAO,cAAc;AAOd,IAAM,SAAS;AAAA,EACpB,UAAAA,QAAG,QAAQ;AAAA,EACX,GAAG,SAAS,QAAQ;AAAA,EACpB,GAAG,SAAS,QAAQ;AAAA,EACpB,cAAc,QAAQ,qBAAqB;AAAA,EAC3C;AAAA,IACE,SAAS;AAAA,MACP,OAAO;AAAA,IACT;AAAA,IACA,OAAO;AAAA,MACL,gCAAgC;AAAA,IAClC;AAAA,EACF;AAAA,EACA;AAAA,IACE,SAAS;AAAA,MACP;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,SAAS,CAAC,SAAS;AAAA,EACrB;AACF;","names":["js"]}
@@ -0,0 +1,16 @@
1
+ import { base } from '../objects/base.js';
2
+ import { ignores } from '../objects/ignores.js';
3
+ import { onlyWarn } from '../objects/onlyWarn.js';
4
+ import { perfectionist } from '../objects/perfectionist.js';
5
+ import '../rules/base.js';
6
+ import 'eslint-plugin-only-warn';
7
+ import 'eslint-plugin-perfectionist';
8
+
9
+ /**
10
+ * A shared ESLint configuration for the repository.
11
+ *
12
+ * @type {import("eslint").Linter.Config[]}
13
+ * */
14
+ const typescript = [base, ...perfectionist, onlyWarn, ignores];
15
+
16
+ export { typescript };
@@ -0,0 +1,21 @@
1
+ import {
2
+ onlyWarn
3
+ } from "../chunk-GVUZG6ZQ.js";
4
+ import {
5
+ perfectionist
6
+ } from "../chunk-C6JVFMYP.js";
7
+ import {
8
+ base
9
+ } from "../chunk-SKRJ7XOK.js";
10
+ import "../chunk-PVI3JF33.js";
11
+ import {
12
+ ignores
13
+ } from "../chunk-R4EOV26M.js";
14
+ import "../chunk-7D4SUZUM.js";
15
+
16
+ // src/configs/typescript.js
17
+ var typescript = [base, ...perfectionist, onlyWarn, ignores];
18
+ export {
19
+ typescript
20
+ };
21
+ //# sourceMappingURL=typescript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/configs/typescript.js"],"sourcesContent":["import { base } from \"../objects/base.js\";\nimport { ignores } from \"../objects/ignores.js\";\nimport { onlyWarn } from \"../objects/onlyWarn.js\";\nimport { perfectionist } from \"../objects/perfectionist.js\";\n\n/**\n * A shared ESLint configuration for the repository.\n *\n * @type {import(\"eslint\").Linter.Config[]}\n * */\nexport const typescript = [base, ...perfectionist, onlyWarn, ignores];\n"],"mappings":";;;;;;;;;;;;;;;;AAUO,IAAM,aAAa,CAAC,MAAM,GAAG,eAAe,UAAU,OAAO;","names":[]}
@@ -0,0 +1,8 @@
1
+ export { javascript } from './configs/javascript.js';
2
+ import './objects/base.js';
3
+ import './rules/base.js';
4
+ import './objects/ignores.js';
5
+ import './objects/onlyWarn.js';
6
+ import 'eslint-plugin-only-warn';
7
+ import './objects/perfectionist.js';
8
+ import 'eslint-plugin-perfectionist';
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import {
2
+ javascript
3
+ } from "./chunk-GO5ZEIJP.js";
4
+ import "./chunk-GVUZG6ZQ.js";
5
+ import "./chunk-C6JVFMYP.js";
6
+ import "./chunk-SKRJ7XOK.js";
7
+ import "./chunk-PVI3JF33.js";
8
+ import "./chunk-R4EOV26M.js";
9
+ import "./chunk-7D4SUZUM.js";
10
+ export {
11
+ javascript
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,9 @@
1
+ import { baseRules } from '../rules/base.js';
2
+
3
+ const base = {
4
+ linterOptions: { reportUnusedDisableDirectives: true },
5
+ name: "javascript",
6
+ rules: baseRules,
7
+ };
8
+
9
+ export { base };
@@ -0,0 +1,9 @@
1
+ import {
2
+ base
3
+ } from "../chunk-SKRJ7XOK.js";
4
+ import "../chunk-PVI3JF33.js";
5
+ import "../chunk-7D4SUZUM.js";
6
+ export {
7
+ base
8
+ };
9
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,5 @@
1
+ const ignores = {
2
+ ignores: ["**/node_modules/", "**/dist/", ".git/"],
3
+ };
4
+
5
+ export { ignores };
@@ -0,0 +1,8 @@
1
+ import {
2
+ ignores
3
+ } from "../chunk-R4EOV26M.js";
4
+ import "../chunk-7D4SUZUM.js";
5
+ export {
6
+ ignores
7
+ };
8
+ //# sourceMappingURL=ignores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,9 @@
1
+ import onlyWarnPlugin from 'eslint-plugin-only-warn';
2
+
3
+ const onlyWarn = {
4
+ plugins: {
5
+ onlyWarn: onlyWarnPlugin,
6
+ },
7
+ };
8
+
9
+ export { onlyWarn };
@@ -0,0 +1,8 @@
1
+ import {
2
+ onlyWarn
3
+ } from "../chunk-GVUZG6ZQ.js";
4
+ import "../chunk-7D4SUZUM.js";
5
+ export {
6
+ onlyWarn
7
+ };
8
+ //# sourceMappingURL=onlyWarn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ import perfectionistPlugin from 'eslint-plugin-perfectionist';
2
+
3
+ const perfectionist = [
4
+ perfectionistPlugin.configs["recommended-natural"],
5
+ ];
6
+
7
+ export { perfectionist };
@@ -0,0 +1,8 @@
1
+ import {
2
+ perfectionist
3
+ } from "../chunk-C6JVFMYP.js";
4
+ import "../chunk-7D4SUZUM.js";
5
+ export {
6
+ perfectionist
7
+ };
8
+ //# sourceMappingURL=perfectionist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}