eslint-config-everything 0.0.0 → 0.0.9

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 (71) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +3 -185
  3. package/dist/chunk-3FZ6L4HR.js +3020 -0
  4. package/dist/chunk-3FZ6L4HR.js.map +1 -0
  5. package/dist/chunk-7D4SUZUM.js +38 -0
  6. package/dist/chunk-7D4SUZUM.js.map +1 -0
  7. package/dist/chunk-DXW5F5KT.js +25 -0
  8. package/dist/chunk-DXW5F5KT.js.map +1 -0
  9. package/dist/chunk-GVUZG6ZQ.js +12 -0
  10. package/dist/chunk-GVUZG6ZQ.js.map +1 -0
  11. package/dist/chunk-OJFGJEKX.js +10 -0
  12. package/dist/chunk-OJFGJEKX.js.map +1 -0
  13. package/dist/chunk-QFM54EV3.js +16 -0
  14. package/dist/chunk-QFM54EV3.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-UL5LGKQ4.js +15 -0
  20. package/dist/chunk-UL5LGKQ4.js.map +1 -0
  21. package/dist/chunk-VRSMQDZC.js +436 -0
  22. package/dist/chunk-VRSMQDZC.js.map +1 -0
  23. package/dist/configs/javascript.d.ts +133 -0
  24. package/dist/configs/javascript.js +13 -0
  25. package/dist/configs/javascript.js.map +1 -0
  26. package/dist/configs/next.d.ts +10 -0
  27. package/dist/configs/next.js +7697 -0
  28. package/dist/configs/next.js.map +1 -0
  29. package/dist/configs/react-internal.d.ts +9 -0
  30. package/dist/configs/react-internal.js +53 -0
  31. package/dist/configs/react-internal.js.map +1 -0
  32. package/dist/configs/turbo.d.ts +10 -0
  33. package/dist/configs/turbo.js +39 -0
  34. package/dist/configs/turbo.js.map +1 -0
  35. package/dist/configs/typescript.d.ts +10 -0
  36. package/dist/configs/typescript.js +21 -0
  37. package/dist/configs/typescript.js.map +1 -0
  38. package/dist/index.d.ts +3 -0
  39. package/dist/index.js +17 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/objects/base.d.ts +125 -0
  42. package/dist/objects/base.js +9 -0
  43. package/dist/objects/base.js.map +1 -0
  44. package/dist/objects/ignores.d.ts +5 -0
  45. package/dist/objects/ignores.js +8 -0
  46. package/dist/objects/ignores.js.map +1 -0
  47. package/dist/objects/onlyWarn.d.ts +7 -0
  48. package/dist/objects/onlyWarn.js +8 -0
  49. package/dist/objects/onlyWarn.js.map +1 -0
  50. package/dist/objects/perfectionist.d.ts +5 -0
  51. package/dist/objects/perfectionist.js +8 -0
  52. package/dist/objects/perfectionist.js.map +1 -0
  53. package/dist/prettier.d.ts +8 -0
  54. package/dist/prettier.js +8 -0
  55. package/dist/prettier.js.map +1 -0
  56. package/dist/rules/base.d.ts +437 -0
  57. package/dist/rules/base.js +8 -0
  58. package/dist/rules/base.js.map +1 -0
  59. package/dist/rules/typescript.d.ts +108 -0
  60. package/dist/rules/typescript.js +126 -0
  61. package/dist/rules/typescript.js.map +1 -0
  62. package/package.json +51 -32
  63. package/.editorconfig +0 -10
  64. package/.gitattributes +0 -4
  65. package/.prettierrc +0 -6
  66. package/.yarn/sdks/integrations.yml +0 -5
  67. package/.yarn/sdks/prettier/bin/prettier.cjs +0 -32
  68. package/.yarn/sdks/prettier/index.cjs +0 -32
  69. package/.yarn/sdks/prettier/package.json +0 -7
  70. package/.yarnrc.yml +0 -1
  71. package/eslint.config.js +0 -198
@@ -0,0 +1,9 @@
1
+ import * as eslint from 'eslint';
2
+
3
+ /**
4
+ * A custom ESLint configuration for libraries that use React.
5
+ *
6
+ * @type {import("eslint").Linter.Config[]} */
7
+ declare const config: eslint.Linter.Config[];
8
+
9
+ export { config };
@@ -0,0 +1,53 @@
1
+ import {
2
+ require_globals
3
+ } from "../chunk-3FZ6L4HR.js";
4
+ import {
5
+ javascript
6
+ } from "../chunk-DXW5F5KT.js";
7
+ import {
8
+ require_src
9
+ } from "../chunk-S5OOXTIG.js";
10
+ import "../chunk-R4EOV26M.js";
11
+ import "../chunk-GVUZG6ZQ.js";
12
+ import "../chunk-OJFGJEKX.js";
13
+ import "../chunk-UL5LGKQ4.js";
14
+ import "../chunk-VRSMQDZC.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,10 @@
1
+ import * as eslint from 'eslint';
2
+
3
+ /**
4
+ * A shared ESLint configuration for the repository.
5
+ *
6
+ * @type {import("eslint").Linter.Config[]}
7
+ * */
8
+ declare const config: eslint.Linter.Config[];
9
+
10
+ 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,10 @@
1
+ import * as eslint from 'eslint';
2
+
3
+ /**
4
+ * A shared ESLint configuration for the repository.
5
+ *
6
+ * @type {import("eslint").Linter.Config[]}
7
+ * */
8
+ declare const typescript: eslint.Linter.Config[];
9
+
10
+ export { typescript };
@@ -0,0 +1,21 @@
1
+ import {
2
+ ignores
3
+ } from "../chunk-R4EOV26M.js";
4
+ import {
5
+ onlyWarn
6
+ } from "../chunk-GVUZG6ZQ.js";
7
+ import {
8
+ perfectionist
9
+ } from "../chunk-OJFGJEKX.js";
10
+ import {
11
+ base
12
+ } from "../chunk-UL5LGKQ4.js";
13
+ import "../chunk-VRSMQDZC.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,3 @@
1
+ export { javascript } from './configs/javascript.js';
2
+ export { prettier } from './prettier.js';
3
+ import 'eslint';
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ import {
2
+ prettier
3
+ } from "./chunk-QFM54EV3.js";
4
+ import {
5
+ javascript
6
+ } from "./chunk-DXW5F5KT.js";
7
+ import "./chunk-R4EOV26M.js";
8
+ import "./chunk-GVUZG6ZQ.js";
9
+ import "./chunk-OJFGJEKX.js";
10
+ import "./chunk-UL5LGKQ4.js";
11
+ import "./chunk-VRSMQDZC.js";
12
+ import "./chunk-7D4SUZUM.js";
13
+ export {
14
+ javascript,
15
+ prettier
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,125 @@
1
+ declare const base: {
2
+ linterOptions: {
3
+ reportUnusedDisableDirectives: true;
4
+ };
5
+ name: string;
6
+ rules: {
7
+ "array-callback-return": ["error", {
8
+ allowImplicit: boolean;
9
+ checkForEach: boolean;
10
+ }];
11
+ "block-scoped-var": "error";
12
+ camelcase: ["error", {
13
+ allow: string[];
14
+ ignoreDestructuring: boolean;
15
+ properties: string;
16
+ }];
17
+ curly: ["warn", string];
18
+ "default-case-last": "error";
19
+ eqeqeq: "error";
20
+ "for-direction": "error";
21
+ "func-names": ["error", string];
22
+ "grouped-accessor-pairs": "error";
23
+ "new-cap": ["error", {
24
+ capIsNew: boolean;
25
+ }];
26
+ "new-parens": "warn";
27
+ "no-alert": "error";
28
+ "no-async-promise-executor": "error";
29
+ "no-bitwise": "error";
30
+ "no-caller": "error";
31
+ "no-case-declarations": "error";
32
+ "no-compare-neg-zero": "error";
33
+ "no-cond-assign": "error";
34
+ "no-console": ["error", {
35
+ allow: string[];
36
+ }];
37
+ "no-constant-binary-expression": "error";
38
+ "no-constant-condition": "error";
39
+ "no-constructor-return": "error";
40
+ "no-control-regex": "error";
41
+ "no-debugger": "error";
42
+ "no-delete-var": "error";
43
+ "no-dupe-else-if": "error";
44
+ "no-duplicate-case": "error";
45
+ "no-else-return": "warn";
46
+ "no-empty": "error";
47
+ "no-empty-character-class": "error";
48
+ "no-empty-pattern": "error";
49
+ "no-empty-static-block": "error";
50
+ "no-eval": "error";
51
+ "no-ex-assign": "error";
52
+ "no-extend-native": "error";
53
+ "no-extra-bind": "error";
54
+ "no-extra-boolean-cast": "error";
55
+ "no-extra-label": "error";
56
+ "no-fallthrough": "error";
57
+ "no-floating-decimal": "error";
58
+ "no-global-assign": "error";
59
+ "no-implicit-coercion": "error";
60
+ "no-invalid-regexp": "error";
61
+ "no-irregular-whitespace": "error";
62
+ "no-iterator": "error";
63
+ "no-label-var": "error";
64
+ "no-labels": ["error"];
65
+ "no-lone-blocks": "error";
66
+ "no-lonely-if": "warn";
67
+ "no-loss-of-precision": "error";
68
+ "no-misleading-character-class": "error";
69
+ "no-multi-assign": ["error"];
70
+ "no-nested-ternary": "error";
71
+ "no-new": "error";
72
+ "no-new-func": "error";
73
+ "no-new-wrappers": "error";
74
+ "no-nonoctal-decimal-escape": "error";
75
+ "no-octal": "error";
76
+ "no-octal-escape": "error";
77
+ "no-param-reassign": "error";
78
+ "no-promise-executor-return": "error";
79
+ "no-proto": "error";
80
+ "no-prototype-builtins": "error";
81
+ "no-regex-spaces": "error";
82
+ "no-return-assign": "error";
83
+ "no-script-url": "error";
84
+ "no-self-assign": "error";
85
+ "no-self-compare": "error";
86
+ "no-sequences": "error";
87
+ "no-shadow-restricted-names": "error";
88
+ "no-sparse-arrays": "error";
89
+ "no-template-curly-in-string": "error";
90
+ "no-undef-init": "warn";
91
+ "no-unexpected-multiline": "error";
92
+ "no-unneeded-ternary": "error";
93
+ "no-unreachable-loop": "error";
94
+ "no-unsafe-finally": "error";
95
+ "no-unsafe-optional-chaining": "error";
96
+ "no-unused-labels": "error";
97
+ "no-unused-private-class-members": "error";
98
+ "no-useless-backreference": "error";
99
+ "no-useless-call": "error";
100
+ "no-useless-catch": "error";
101
+ "no-useless-computed-key": "warn";
102
+ "no-useless-concat": "error";
103
+ "no-useless-escape": "error";
104
+ "no-useless-rename": "warn";
105
+ "no-useless-return": "warn";
106
+ "no-var": "error";
107
+ "no-with": "error";
108
+ "object-shorthand": "warn";
109
+ "prefer-const": "warn";
110
+ "prefer-named-capture-group": "error";
111
+ "prefer-numeric-literals": "error";
112
+ "prefer-object-spread": "warn";
113
+ "prefer-regex-literals": "error";
114
+ "prefer-rest-params": "error";
115
+ "prefer-spread": "error";
116
+ "prefer-template": "warn";
117
+ "require-yield": "error";
118
+ "symbol-description": "error";
119
+ "use-isnan": "error";
120
+ "valid-typeof": "error";
121
+ yoda: "warn";
122
+ };
123
+ };
124
+
125
+ export { base };
@@ -0,0 +1,9 @@
1
+ import {
2
+ base
3
+ } from "../chunk-UL5LGKQ4.js";
4
+ import "../chunk-VRSMQDZC.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
+ declare namespace ignores {
2
+ let ignores: string[];
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,7 @@
1
+ declare namespace onlyWarn {
2
+ namespace plugins {
3
+ export { onlyWarnPlugin as onlyWarn };
4
+ }
5
+ }
6
+
7
+ 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,5 @@
1
+ import { Linter } from 'eslint';
2
+
3
+ declare const perfectionist: Linter.Config<Linter.RulesRecord>[];
4
+
5
+ export { perfectionist };
@@ -0,0 +1,8 @@
1
+ import {
2
+ perfectionist
3
+ } from "../chunk-OJFGJEKX.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":[]}
@@ -0,0 +1,8 @@
1
+ declare const prettier: {
2
+ experimentalTernaries: true;
3
+ jsonRecursiveSort: boolean;
4
+ plugins: string[];
5
+ tailwindFunctions: string[];
6
+ };
7
+
8
+ export { prettier };
@@ -0,0 +1,8 @@
1
+ import {
2
+ prettier
3
+ } from "./chunk-QFM54EV3.js";
4
+ import "./chunk-7D4SUZUM.js";
5
+ export {
6
+ prettier
7
+ };
8
+ //# sourceMappingURL=prettier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}