@imranbarbhuiya/oxc-config 0.0.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.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +190 -0
  3. package/dist/api-error.d.ts +6 -0
  4. package/dist/api-error.js +12 -0
  5. package/dist/api-error.js.map +1 -0
  6. package/dist/central-icons.d.ts +6 -0
  7. package/dist/central-icons.js +12 -0
  8. package/dist/central-icons.js.map +1 -0
  9. package/dist/common.d.ts +6 -0
  10. package/dist/common.js +296 -0
  11. package/dist/common.js.map +1 -0
  12. package/dist/edge.d.ts +6 -0
  13. package/dist/edge.js +18 -0
  14. package/dist/edge.js.map +1 -0
  15. package/dist/i18n.d.ts +6 -0
  16. package/dist/i18n.js +15 -0
  17. package/dist/i18n.js.map +1 -0
  18. package/dist/jsdoc.d.ts +6 -0
  19. package/dist/jsdoc.js +43 -0
  20. package/dist/jsdoc.js.map +1 -0
  21. package/dist/jsx.d.ts +6 -0
  22. package/dist/jsx.js +78 -0
  23. package/dist/jsx.js.map +1 -0
  24. package/dist/mdx.d.ts +6 -0
  25. package/dist/mdx.js +25 -0
  26. package/dist/mdx.js.map +1 -0
  27. package/dist/module.d.ts +6 -0
  28. package/dist/module.js +12 -0
  29. package/dist/module.js.map +1 -0
  30. package/dist/native-tailwind.d.ts +6 -0
  31. package/dist/native-tailwind.js +12 -0
  32. package/dist/native-tailwind.js.map +1 -0
  33. package/dist/native.d.ts +6 -0
  34. package/dist/native.js +51 -0
  35. package/dist/native.js.map +1 -0
  36. package/dist/nest.d.ts +6 -0
  37. package/dist/nest.js +13 -0
  38. package/dist/nest.js.map +1 -0
  39. package/dist/next.d.ts +6 -0
  40. package/dist/next.js +33 -0
  41. package/dist/next.js.map +1 -0
  42. package/dist/node.d.ts +6 -0
  43. package/dist/node.js +80 -0
  44. package/dist/node.js.map +1 -0
  45. package/dist/plugins/api-error.d.ts +6 -0
  46. package/dist/plugins/api-error.js +169 -0
  47. package/dist/plugins/api-error.js.map +1 -0
  48. package/dist/plugins/central-icons.d.ts +6 -0
  49. package/dist/plugins/central-icons.js +61 -0
  50. package/dist/plugins/central-icons.js.map +1 -0
  51. package/dist/plugins/i18n.d.ts +6 -0
  52. package/dist/plugins/i18n.js +58 -0
  53. package/dist/plugins/i18n.js.map +1 -0
  54. package/dist/plugins/native-tailwind.d.ts +6 -0
  55. package/dist/plugins/native-tailwind.js +110 -0
  56. package/dist/plugins/native-tailwind.js.map +1 -0
  57. package/dist/react.d.ts +6 -0
  58. package/dist/react.js +65 -0
  59. package/dist/react.js.map +1 -0
  60. package/dist/tailwind.d.ts +6 -0
  61. package/dist/tailwind.js +18 -0
  62. package/dist/tailwind.js.map +1 -0
  63. package/dist/tsdoc.d.ts +6 -0
  64. package/dist/tsdoc.js +21 -0
  65. package/dist/tsdoc.js.map +1 -0
  66. package/dist/typescript.d.ts +6 -0
  67. package/dist/typescript.js +200 -0
  68. package/dist/typescript.js.map +1 -0
  69. package/package.json +180 -0
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/jsdoc.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=jsdoc.d.ts.map
package/dist/jsdoc.js ADDED
@@ -0,0 +1,43 @@
1
+ import eslintPluginJsdoc from "eslint-plugin-jsdoc";
2
+
3
+ //#region src/jsdoc.ts
4
+ const config = [{
5
+ name: "mahir/jsdoc",
6
+ plugins: { jsdoc: eslintPluginJsdoc },
7
+ rules: {
8
+ "jsdoc/check-access": 2,
9
+ "jsdoc/check-alignment": 2,
10
+ "jsdoc/check-param-names": 2,
11
+ "jsdoc/check-property-names": 2,
12
+ "jsdoc/check-syntax": 2,
13
+ "jsdoc/check-tag-names": 2,
14
+ "jsdoc/check-types": 2,
15
+ "jsdoc/check-values": 2,
16
+ "jsdoc/empty-tags": 2,
17
+ "jsdoc/implements-on-classes": 2,
18
+ "jsdoc/multiline-blocks": [2, {
19
+ noMultilineBlocks: false,
20
+ noSingleLineBlocks: true
21
+ }],
22
+ "jsdoc/no-bad-blocks": 2,
23
+ "jsdoc/no-defaults": 2,
24
+ "jsdoc/no-multi-asterisks": 2,
25
+ "jsdoc/no-undefined-types": 2,
26
+ "jsdoc/require-asterisk-prefix": 2,
27
+ "jsdoc/require-param-name": 2,
28
+ "jsdoc/require-property": 2,
29
+ "jsdoc/require-property-description": 2,
30
+ "jsdoc/require-property-name": 2,
31
+ "jsdoc/require-property-type": 2,
32
+ "jsdoc/tag-lines": [
33
+ 2,
34
+ "never",
35
+ { startLines: 1 }
36
+ ],
37
+ "jsdoc/valid-types": 2
38
+ }
39
+ }];
40
+
41
+ //#endregion
42
+ export { config as default };
43
+ //# sourceMappingURL=jsdoc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsdoc.js","names":[],"sources":["../src/jsdoc.ts"],"sourcesContent":["import eslintPluginJsdoc from 'eslint-plugin-jsdoc';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'jsdoc/check-access': 2,\n\t'jsdoc/check-alignment': 2,\n\t'jsdoc/check-param-names': 2,\n\t'jsdoc/check-property-names': 2,\n\t'jsdoc/check-syntax': 2,\n\t'jsdoc/check-tag-names': 2,\n\t'jsdoc/check-types': 2,\n\t'jsdoc/check-values': 2,\n\t'jsdoc/empty-tags': 2,\n\t'jsdoc/implements-on-classes': 2,\n\t'jsdoc/multiline-blocks': [\n\t\t2,\n\t\t{\n\t\t\tnoMultilineBlocks: false,\n\t\t\tnoSingleLineBlocks: true,\n\t\t},\n\t],\n\t'jsdoc/no-bad-blocks': 2,\n\t'jsdoc/no-defaults': 2,\n\t'jsdoc/no-multi-asterisks': 2,\n\t'jsdoc/no-undefined-types': 2,\n\t'jsdoc/require-asterisk-prefix': 2,\n\t'jsdoc/require-param-name': 2,\n\t'jsdoc/require-property': 2,\n\t'jsdoc/require-property-description': 2,\n\t'jsdoc/require-property-name': 2,\n\t'jsdoc/require-property-type': 2,\n\t'jsdoc/tag-lines': [2, 'never', { startLines: 1 }],\n\t'jsdoc/valid-types': 2,\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tname: 'mahir/jsdoc',\n\t\tplugins: {\n\t\t\tjsdoc: eslintPluginJsdoc,\n\t\t},\n\t\trules,\n\t},\n];\n\nexport default config;\n"],"mappings":";;;AAoCA,MAAM,SAA0C,CAC/C;CACC,MAAM;CACN,SAAS,EACR,OAAO,kBACR;CACA;EArCD,sBAAsB;EACtB,yBAAyB;EACzB,2BAA2B;EAC3B,8BAA8B;EAC9B,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,sBAAsB;EACtB,oBAAoB;EACpB,+BAA+B;EAC/B,0BAA0B,CACzB,GACA;GACC,mBAAmB;GACnB,oBAAoB;EACrB,CACD;EACA,uBAAuB;EACvB,qBAAqB;EACrB,4BAA4B;EAC5B,4BAA4B;EAC5B,iCAAiC;EACjC,4BAA4B;EAC5B,0BAA0B;EAC1B,sCAAsC;EACtC,+BAA+B;EAC/B,+BAA+B;EAC/B,mBAAmB;GAAC;GAAG;GAAS,EAAE,YAAY,EAAE;EAAC;EACjD,qBAAqB;CAShB;AACL,CACD"}
package/dist/jsx.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/jsx.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=jsx.d.ts.map
package/dist/jsx.js ADDED
@@ -0,0 +1,78 @@
1
+ import eslintPluginReact from "eslint-plugin-react";
2
+
3
+ //#region src/jsx.ts
4
+ const config = [{
5
+ name: "mahir/jsx",
6
+ languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } },
7
+ plugins: { react: eslintPluginReact },
8
+ rules: {
9
+ "react/jsx-boolean-value": [2, "never"],
10
+ "react/jsx-closing-bracket-location": [2, "line-aligned"],
11
+ "react/jsx-closing-tag-location": 2,
12
+ "react/jsx-curly-brace-presence": [2, {
13
+ children: "never",
14
+ props: "never"
15
+ }],
16
+ "react/jsx-equals-spacing": [2, "never"],
17
+ "react/jsx-first-prop-new-line": [2, "multiline-multiprop"],
18
+ "react/jsx-fragments": [2, "syntax"],
19
+ "react/jsx-key": [2, {
20
+ checkFragmentShorthand: true,
21
+ checkKeyMustBeforeSpread: true
22
+ }],
23
+ "react/jsx-max-props-per-line": [2, {
24
+ maximum: 3,
25
+ when: "multiline"
26
+ }],
27
+ "react/jsx-newline": [2, { prevent: true }],
28
+ "react/jsx-no-bind": [2, {
29
+ allowArrowFunctions: true,
30
+ allowBind: false,
31
+ ignoreRefs: true
32
+ }],
33
+ "react/jsx-no-comment-textnodes": 2,
34
+ "react/jsx-no-constructed-context-values": 2,
35
+ "react/jsx-no-duplicate-props": 2,
36
+ "react/jsx-no-script-url": 2,
37
+ "react/jsx-no-undef": 2,
38
+ "react/jsx-no-useless-fragment": [2, { allowExpressions: true }],
39
+ "react/jsx-pascal-case": [2, { ignore: [
40
+ "h{}",
41
+ "h2",
42
+ "h3",
43
+ "h4",
44
+ "h5",
45
+ "h6",
46
+ "p",
47
+ "a",
48
+ "ul",
49
+ "ol",
50
+ "li",
51
+ "img",
52
+ "div",
53
+ "span",
54
+ "dl",
55
+ "dt",
56
+ "dd"
57
+ ] }],
58
+ "react/jsx-props-no-multi-spaces": 2,
59
+ "react/jsx-sort-props": 2,
60
+ "react/jsx-tag-spacing": [2, {
61
+ afterOpening: "never",
62
+ beforeSelfClosing: "always",
63
+ closingSlash: "never"
64
+ }],
65
+ "react/jsx-uses-react": 2,
66
+ "react/jsx-uses-vars": 2,
67
+ "react/sort-default-props": 2,
68
+ "unicorn/consistent-function-scoping": 0
69
+ },
70
+ settings: {
71
+ "import-x/extensions": [".js", ".jsx"],
72
+ "import-x/resolver": { node: { extensions: [".js", ".jsx"] } }
73
+ }
74
+ }];
75
+
76
+ //#endregion
77
+ export { config as default };
78
+ //# sourceMappingURL=jsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx.js","names":[],"sources":["../src/jsx.ts"],"sourcesContent":["import eslintPluginReact from 'eslint-plugin-react';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'react/jsx-boolean-value': [2, 'never'],\n\t'react/jsx-closing-bracket-location': [2, 'line-aligned'],\n\t'react/jsx-closing-tag-location': 2,\n\t'react/jsx-curly-brace-presence': [\n\t\t2,\n\t\t{\n\t\t\tchildren: 'never',\n\t\t\tprops: 'never',\n\t\t},\n\t],\n\t'react/jsx-equals-spacing': [2, 'never'],\n\t'react/jsx-first-prop-new-line': [2, 'multiline-multiprop'],\n\t'react/jsx-fragments': [2, 'syntax'],\n\t'react/jsx-key': [\n\t\t2,\n\t\t{\n\t\t\tcheckFragmentShorthand: true,\n\t\t\tcheckKeyMustBeforeSpread: true,\n\t\t},\n\t],\n\t'react/jsx-max-props-per-line': [\n\t\t2,\n\t\t{\n\t\t\tmaximum: 3,\n\t\t\twhen: 'multiline',\n\t\t},\n\t],\n\t'react/jsx-newline': [\n\t\t2,\n\t\t{\n\t\t\tprevent: true,\n\t\t},\n\t],\n\t'react/jsx-no-bind': [\n\t\t2,\n\t\t{\n\t\t\tallowArrowFunctions: true,\n\t\t\tallowBind: false,\n\t\t\tignoreRefs: true,\n\t\t},\n\t],\n\t'react/jsx-no-comment-textnodes': 2,\n\t'react/jsx-no-constructed-context-values': 2,\n\t'react/jsx-no-duplicate-props': 2,\n\t'react/jsx-no-script-url': 2,\n\t'react/jsx-no-undef': 2,\n\t'react/jsx-no-useless-fragment': [\n\t\t2,\n\t\t{\n\t\t\tallowExpressions: true,\n\t\t},\n\t],\n\t'react/jsx-pascal-case': [\n\t\t2,\n\t\t{\n\t\t\tignore: ['h{}', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'a', 'ul', 'ol', 'li', 'img', 'div', 'span', 'dl', 'dt', 'dd'],\n\t\t},\n\t],\n\t'react/jsx-props-no-multi-spaces': 2,\n\t'react/jsx-sort-props': 2,\n\t'react/jsx-tag-spacing': [\n\t\t2,\n\t\t{\n\t\t\tafterOpening: 'never',\n\t\t\tbeforeSelfClosing: 'always',\n\t\t\tclosingSlash: 'never',\n\t\t},\n\t],\n\t'react/jsx-uses-react': 2,\n\t'react/jsx-uses-vars': 2,\n\t'react/sort-default-props': 2,\n\t'unicorn/consistent-function-scoping': 0,\n};\n\n// parserOptions: {\n// \tecmaFeatures: {\n// \t\tjsx: true,\n// \t\timpliedStrict: true,\n// \t},\n// \tsourceType: 'module',\n// },\n// plugins: ['react'],\n// rules: {\n\nconst settings: TSESLint.FlatConfig.Settings = {\n\t'import-x/extensions': ['.js', '.jsx'],\n\t'import-x/resolver': {\n\t\tnode: {\n\t\t\textensions: ['.js', '.jsx'],\n\t\t},\n\t},\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tname: 'mahir/jsx',\n\t\tlanguageOptions: {\n\t\t\tparserOptions: {\n\t\t\t\tecmaFeatures: {\n\t\t\t\t\tjsx: true,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tplugins: {\n\t\t\treact: eslintPluginReact,\n\t\t},\n\t\trules,\n\t\tsettings,\n\t},\n];\n\nexport default config;\n"],"mappings":";;;AAkGA,MAAM,SAA0C,CAC/C;CACC,MAAM;CACN,iBAAiB,EAChB,eAAe,EACd,cAAc,EACb,KAAK,KACN,EACD,EACD;CACA,SAAS,EACR,OAAO,kBACR;CACA;EA1GD,2BAA2B,CAAC,GAAG,OAAO;EACtC,sCAAsC,CAAC,GAAG,cAAc;EACxD,kCAAkC;EAClC,kCAAkC,CACjC,GACA;GACC,UAAU;GACV,OAAO;EACR,CACD;EACA,4BAA4B,CAAC,GAAG,OAAO;EACvC,iCAAiC,CAAC,GAAG,qBAAqB;EAC1D,uBAAuB,CAAC,GAAG,QAAQ;EACnC,iBAAiB,CAChB,GACA;GACC,wBAAwB;GACxB,0BAA0B;EAC3B,CACD;EACA,gCAAgC,CAC/B,GACA;GACC,SAAS;GACT,MAAM;EACP,CACD;EACA,qBAAqB,CACpB,GACA,EACC,SAAS,KACV,CACD;EACA,qBAAqB,CACpB,GACA;GACC,qBAAqB;GACrB,WAAW;GACX,YAAY;EACb,CACD;EACA,kCAAkC;EAClC,2CAA2C;EAC3C,gCAAgC;EAChC,2BAA2B;EAC3B,sBAAsB;EACtB,iCAAiC,CAChC,GACA,EACC,kBAAkB,KACnB,CACD;EACA,yBAAyB,CACxB,GACA,EACC,QAAQ;GAAC;GAAO;GAAM;GAAM;GAAM;GAAM;GAAM;GAAK;GAAK;GAAM;GAAM;GAAM;GAAO;GAAO;GAAQ;GAAM;GAAM;EAAI,EACjH,CACD;EACA,mCAAmC;EACnC,wBAAwB;EACxB,yBAAyB,CACxB,GACA;GACC,cAAc;GACd,mBAAmB;GACnB,cAAc;EACf,CACD;EACA,wBAAwB;EACxB,uBAAuB;EACvB,4BAA4B;EAC5B,uCAAuC;CAmClC;CACJ;EAtBD,uBAAuB,CAAC,OAAO,MAAM;EACrC,qBAAqB,EACpB,MAAM,EACL,YAAY,CAAC,OAAO,MAAM,EAC3B,EACD;CAiBQ;AACR,CACD"}
package/dist/mdx.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/mdx.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=mdx.d.ts.map
package/dist/mdx.js ADDED
@@ -0,0 +1,25 @@
1
+ import * as mdx from "eslint-plugin-mdx";
2
+
3
+ //#region src/mdx.ts
4
+ const config = [
5
+ {
6
+ ...mdx.flat,
7
+ processor: mdx.createRemarkProcessor({
8
+ lintCodeBlocks: false,
9
+ languageMapper: false
10
+ })
11
+ },
12
+ mdx.flatCodeBlocks,
13
+ {
14
+ name: "mahir/mdx",
15
+ rules: {
16
+ "react/jsx-sort-props": "off",
17
+ "@next/next/no-img-element": "off",
18
+ "react/jsx-closing-bracket-location": "off"
19
+ }
20
+ }
21
+ ];
22
+
23
+ //#endregion
24
+ export { config as default };
25
+ //# sourceMappingURL=mdx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx.js","names":[],"sources":["../src/mdx.ts"],"sourcesContent":["import * as mdx from 'eslint-plugin-mdx';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\t...mdx.flat,\n\t\tprocessor: mdx.createRemarkProcessor({\n\t\t\tlintCodeBlocks: false,\n\t\t\tlanguageMapper: false,\n\t\t}),\n\t},\n\tmdx.flatCodeBlocks,\n\t{\n\t\tname: 'mahir/mdx',\n\t\trules: {\n\t\t\t'react/jsx-sort-props': 'off',\n\t\t\t'@next/next/no-img-element': 'off',\n\t\t\t'react/jsx-closing-bracket-location': 'off',\n\t\t},\n\t},\n];\n\nexport default config;\n"],"mappings":";;;AAIA,MAAM,SAA0C;CAC/C;EACC,GAAG,IAAI;EACP,WAAW,IAAI,sBAAsB;GACpC,gBAAgB;GAChB,gBAAgB;EACjB,CAAC;CACF;CACA,IAAI;CACJ;EACC,MAAM;EACN,OAAO;GACN,wBAAwB;GACxB,6BAA6B;GAC7B,sCAAsC;EACvC;CACD;AACD"}
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/module.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=module.d.ts.map
package/dist/module.js ADDED
@@ -0,0 +1,12 @@
1
+ //#region src/module.ts
2
+ const config = [{
3
+ name: "mahir/module",
4
+ rules: {
5
+ "unicorn/prefer-module": 2,
6
+ "unicorn/prefer-top-level-await": 2
7
+ }
8
+ }];
9
+
10
+ //#endregion
11
+ export { config as default };
12
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","names":[],"sources":["../src/module.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'unicorn/prefer-module': 2,\n\t'unicorn/prefer-top-level-await': 2,\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tname: 'mahir/module',\n\t\trules,\n\t},\n];\n\nexport default config;\n"],"mappings":";AAOA,MAAM,SAA0C,CAC/C;CACC,MAAM;CACN;EAPD,yBAAyB;EACzB,kCAAkC;CAM7B;AACL,CACD"}
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/native-tailwind.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=native-tailwind.d.ts.map
@@ -0,0 +1,12 @@
1
+ import plugin from "./plugins/native-tailwind.js";
2
+
3
+ //#region src/native-tailwind.ts
4
+ const config = [{
5
+ name: "mahir/native-tailwind",
6
+ plugins: { "mahir-native-tailwind": plugin },
7
+ rules: { "mahir-native-tailwind/class-name-rules": 2 }
8
+ }];
9
+
10
+ //#endregion
11
+ export { config as default };
12
+ //# sourceMappingURL=native-tailwind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-tailwind.js","names":["pluginNativeTailwind"],"sources":["../src/native-tailwind.ts"],"sourcesContent":["import pluginNativeTailwind from './plugins/native-tailwind.js';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tname: 'mahir/native-tailwind',\n\t\tplugins: {\n\t\t\t'mahir-native-tailwind': pluginNativeTailwind,\n\t\t},\n\t\trules: {\n\t\t\t'mahir-native-tailwind/class-name-rules': 2,\n\t\t},\n\t},\n];\n\nexport default config;\n"],"mappings":";;;AAIA,MAAM,SAA0C,CAC/C;CACC,MAAM;CACN,SAAS,EACR,yBAAyBA,OAC1B;CACA,OAAO,EACN,0CAA0C,EAC3C;AACD,CACD"}
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/native.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=native.d.ts.map
package/dist/native.js ADDED
@@ -0,0 +1,51 @@
1
+ import config$1 from "./react.js";
2
+ import eslintPluginTsdoc from "eslint-plugin-tsdoc";
3
+ import globals from "globals";
4
+
5
+ //#region src/native.ts
6
+ const settings = { "import-x/ignore": ["node_modules[\\\\/]+@?react-native"] };
7
+ const config = [
8
+ ...config$1,
9
+ {
10
+ name: "mahir/native",
11
+ languageOptions: { globals: {
12
+ console: false,
13
+ exports: false,
14
+ global: false,
15
+ module: false,
16
+ require: false,
17
+ __DEV__: false,
18
+ Atomics: false,
19
+ ErrorUtils: false,
20
+ FormData: false,
21
+ SharedArrayBuffer: false,
22
+ XMLHttpRequest: false,
23
+ alert: false,
24
+ cancelAnimationFrame: false,
25
+ cancelIdleCallback: false,
26
+ clearImmediate: false,
27
+ clearInterval: false,
28
+ clearTimeout: false,
29
+ fetch: false,
30
+ navigator: false,
31
+ process: false,
32
+ requestAnimationFrame: false,
33
+ requestIdleCallback: false,
34
+ setImmediate: false,
35
+ setInterval: false,
36
+ setTimeout: false,
37
+ window: false
38
+ } },
39
+ plugins: { tsdoc: eslintPluginTsdoc },
40
+ settings
41
+ },
42
+ {
43
+ name: "mahir/native-web",
44
+ files: ["*.web.*"],
45
+ languageOptions: { globals: { ...globals.browser } }
46
+ }
47
+ ];
48
+
49
+ //#endregion
50
+ export { config as default };
51
+ //# sourceMappingURL=native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native.js","names":["react"],"sources":["../src/native.ts"],"sourcesContent":["import eslintPluginTsdoc from 'eslint-plugin-tsdoc';\nimport globals from 'globals';\n\nimport react from './react.js';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst settings: TSESLint.FlatConfig.Settings = {\n\t'import-x/ignore': [\n\t\t// react-native's main module is Flow, not JavaScript, and raises parse errors. Additionally,\n\t\t// several other react-native-related packages still publish Flow code as their main source.\n\t\t'node_modules[\\\\\\\\/]+@?react-native',\n\t],\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t...react,\n\t{\n\t\tname: 'mahir/native',\n\t\tlanguageOptions: {\n\t\t\tglobals: {\n\t\t\t\tconsole: false,\n\t\t\t\texports: false,\n\t\t\t\tglobal: false,\n\t\t\t\tmodule: false,\n\t\t\t\trequire: false,\n\t\t\t\t__DEV__: false,\n\t\t\t\tAtomics: false,\n\t\t\t\tErrorUtils: false,\n\t\t\t\tFormData: false,\n\t\t\t\tSharedArrayBuffer: false,\n\t\t\t\tXMLHttpRequest: false,\n\t\t\t\talert: false,\n\t\t\t\tcancelAnimationFrame: false,\n\t\t\t\tcancelIdleCallback: false,\n\t\t\t\tclearImmediate: false,\n\t\t\t\tclearInterval: false,\n\t\t\t\tclearTimeout: false,\n\t\t\t\tfetch: false,\n\t\t\t\tnavigator: false,\n\t\t\t\tprocess: false,\n\t\t\t\trequestAnimationFrame: false,\n\t\t\t\trequestIdleCallback: false,\n\t\t\t\tsetImmediate: false,\n\t\t\t\tsetInterval: false,\n\t\t\t\tsetTimeout: false,\n\t\t\t\twindow: false,\n\t\t\t},\n\t\t},\n\t\tplugins: {\n\t\t\ttsdoc: eslintPluginTsdoc,\n\t\t},\n\t\tsettings,\n\t},\n\t{\n\t\tname: 'mahir/native-web',\n\t\tfiles: ['*.web.*'],\n\t\tlanguageOptions: {\n\t\t\tglobals: {\n\t\t\t\t...globals.browser,\n\t\t\t},\n\t\t},\n\t},\n];\n\nexport default config;\n"],"mappings":";;;;;AAOA,MAAM,WAAyC,EAC9C,mBAAmB,CAGlB,oCACD,EACD;AAEA,MAAM,SAA0C;CAC/C,GAAGA;CACH;EACC,MAAM;EACN,iBAAiB,EAChB,SAAS;GACR,SAAS;GACT,SAAS;GACT,QAAQ;GACR,QAAQ;GACR,SAAS;GACT,SAAS;GACT,SAAS;GACT,YAAY;GACZ,UAAU;GACV,mBAAmB;GACnB,gBAAgB;GAChB,OAAO;GACP,sBAAsB;GACtB,oBAAoB;GACpB,gBAAgB;GAChB,eAAe;GACf,cAAc;GACd,OAAO;GACP,WAAW;GACX,SAAS;GACT,uBAAuB;GACvB,qBAAqB;GACrB,cAAc;GACd,aAAa;GACb,YAAY;GACZ,QAAQ;EACT,EACD;EACA,SAAS,EACR,OAAO,kBACR;EACA;CACD;CACA;EACC,MAAM;EACN,OAAO,CAAC,SAAS;EACjB,iBAAiB,EAChB,SAAS,EACR,GAAG,QAAQ,QACZ,EACD;CACD;AACD"}
package/dist/nest.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/nest.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=nest.d.ts.map
package/dist/nest.js ADDED
@@ -0,0 +1,13 @@
1
+ import eslintNestJs from "@darraghor/eslint-plugin-nestjs-typed";
2
+
3
+ //#region src/nest.ts
4
+ const config = [{
5
+ name: "mahir/nest",
6
+ plugins: { "@darraghor/nestjs-typed": eslintNestJs.plugin },
7
+ languageOptions: { parserOptions: { emitDecoratorMetadata: true } },
8
+ rules: { "@darraghor/nestjs-typed/sort-module-metadata-arrays": 2 }
9
+ }];
10
+
11
+ //#endregion
12
+ export { config as default };
13
+ //# sourceMappingURL=nest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nest.js","names":[],"sources":["../src/nest.ts"],"sourcesContent":["import eslintNestJs from '@darraghor/eslint-plugin-nestjs-typed';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'@darraghor/nestjs-typed/sort-module-metadata-arrays': 2,\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tname: 'mahir/nest',\n\t\tplugins: {\n\t\t\t'@darraghor/nestjs-typed': eslintNestJs.plugin,\n\t\t},\n\t\tlanguageOptions: {\n\t\t\tparserOptions: {\n\t\t\t\temitDecoratorMetadata: true,\n\t\t\t},\n\t\t},\n\t\trules,\n\t},\n];\n\nexport default config;\n"],"mappings":";;;AAQA,MAAM,SAA0C,CAC/C;CACC,MAAM;CACN,SAAS,EACR,2BAA2B,aAAa,OACzC;CACA,iBAAiB,EAChB,eAAe,EACd,uBAAuB,KACxB,EACD;CACA,SAdD,uDAAuD,EAclD;AACL,CACD"}
package/dist/next.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/next.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=next.d.ts.map
package/dist/next.js ADDED
@@ -0,0 +1,33 @@
1
+ import eslintPluginNext from "@next/eslint-plugin-next";
2
+
3
+ //#region src/next.ts
4
+ const config = [{
5
+ name: "mahir/next",
6
+ plugins: { "@next/next": eslintPluginNext },
7
+ rules: {
8
+ "@next/next/google-font-display": 1,
9
+ "@next/next/google-font-preconnect": 1,
10
+ "@next/next/inline-script-id": 2,
11
+ "@next/next/next-script-for-ga": 1,
12
+ "@next/next/no-assign-module-variable": 2,
13
+ "@next/next/no-before-interactive-script-outside-document": 2,
14
+ "@next/next/no-css-tags": 1,
15
+ "@next/next/no-document-import-in-page": 2,
16
+ "@next/next/no-duplicate-head": 2,
17
+ "@next/next/no-head-element": 1,
18
+ "@next/next/no-head-import-in-document": 2,
19
+ "@next/next/no-html-link-for-pages": 1,
20
+ "@next/next/no-img-element": 1,
21
+ "@next/next/no-page-custom-font": 1,
22
+ "@next/next/no-script-component-in-head": 2,
23
+ "@next/next/no-styled-jsx-in-document": 2,
24
+ "@next/next/no-sync-scripts": 2,
25
+ "@next/next/no-title-in-document-head": 2,
26
+ "@next/next/no-typos": 2,
27
+ "@next/next/no-unwanted-polyfillio": 2
28
+ }
29
+ }];
30
+
31
+ //#endregion
32
+ export { config as default };
33
+ //# sourceMappingURL=next.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.js","names":[],"sources":["../src/next.ts"],"sourcesContent":["import eslintPluginNext from '@next/eslint-plugin-next';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'@next/next/google-font-display': 1,\n\t'@next/next/google-font-preconnect': 1,\n\t'@next/next/inline-script-id': 2,\n\t'@next/next/next-script-for-ga': 1,\n\t'@next/next/no-assign-module-variable': 2,\n\t'@next/next/no-before-interactive-script-outside-document': 2,\n\t'@next/next/no-css-tags': 1,\n\t'@next/next/no-document-import-in-page': 2,\n\t'@next/next/no-duplicate-head': 2,\n\t'@next/next/no-head-element': 1,\n\t'@next/next/no-head-import-in-document': 2,\n\t'@next/next/no-html-link-for-pages': 1,\n\t'@next/next/no-img-element': 1,\n\t'@next/next/no-page-custom-font': 1,\n\t'@next/next/no-script-component-in-head': 2,\n\t'@next/next/no-styled-jsx-in-document': 2,\n\t'@next/next/no-sync-scripts': 2,\n\t'@next/next/no-title-in-document-head': 2,\n\t'@next/next/no-typos': 2,\n\t'@next/next/no-unwanted-polyfillio': 2,\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tname: 'mahir/next',\n\t\tplugins: {\n\t\t\t'@next/next': eslintPluginNext,\n\t\t},\n\t\trules,\n\t},\n];\n\nexport default config;\n"],"mappings":";;;AA2BA,MAAM,SAA0C,CAC/C;CACC,MAAM;CACN,SAAS,EACR,cAAc,iBACf;CACA;EA5BD,kCAAkC;EAClC,qCAAqC;EACrC,+BAA+B;EAC/B,iCAAiC;EACjC,wCAAwC;EACxC,4DAA4D;EAC5D,0BAA0B;EAC1B,yCAAyC;EACzC,gCAAgC;EAChC,8BAA8B;EAC9B,yCAAyC;EACzC,qCAAqC;EACrC,6BAA6B;EAC7B,kCAAkC;EAClC,0CAA0C;EAC1C,wCAAwC;EACxC,8BAA8B;EAC9B,wCAAwC;EACxC,uBAAuB;EACvB,qCAAqC;CAShC;AACL,CACD"}
package/dist/node.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/node.d.ts
3
+ declare const config: TSESLint.FlatConfig.ConfigArray;
4
+ //#endregion
5
+ export { config as default };
6
+ //# sourceMappingURL=node.d.ts.map
package/dist/node.js ADDED
@@ -0,0 +1,80 @@
1
+ import globals from "globals";
2
+ import n from "eslint-plugin-n";
3
+
4
+ //#region src/node.ts
5
+ const rules = {
6
+ "n/callback-return": 2,
7
+ "n/handle-callback-err": 2,
8
+ "n/no-callback-literal": 2,
9
+ "n/no-deprecated-api": 2,
10
+ "n/no-exports-assign": 2,
11
+ "n/no-new-require": 2,
12
+ "n/no-path-concat": 2,
13
+ "n/no-sync": [2, {
14
+ allowAtRootLevel: true,
15
+ ignores: ["existsSync"]
16
+ }],
17
+ "n/no-unpublished-bin": 2,
18
+ "n/prefer-global/buffer": [2, "never"],
19
+ "n/prefer-global/console": [2, "always"],
20
+ "n/prefer-global/process": [2, "never"],
21
+ "n/prefer-global/text-decoder": [2, "never"],
22
+ "n/prefer-global/text-encoder": [2, "never"],
23
+ "n/prefer-global/url": [2, "never"],
24
+ "n/prefer-global/url-search-params": [2, "never"],
25
+ "n/process-exit-as-throw": 2,
26
+ "n/hashbang": [2, { convertPath: { "src/**/*.js": ["^src/(.+?)\\.js$", "dist/$1.js"] } }],
27
+ "no-restricted-globals": [
28
+ 2,
29
+ {
30
+ name: "Buffer",
31
+ message: "Import Buffer from `node:buffer` instead"
32
+ },
33
+ {
34
+ name: "process",
35
+ message: "Import process from `node:process` instead"
36
+ },
37
+ {
38
+ name: "setTimeout",
39
+ message: "Import setTimeout from `node:timers` instead"
40
+ },
41
+ {
42
+ name: "setInterval",
43
+ message: "Import setInterval from `node:timers` instead"
44
+ },
45
+ {
46
+ name: "setImmediate",
47
+ message: "Import setImmediate from `node:timers` instead"
48
+ },
49
+ {
50
+ name: "clearTimeout",
51
+ message: "Import clearTimeout from `node:timers` instead"
52
+ },
53
+ {
54
+ name: "clearInterval",
55
+ message: "Import clearInterval from `node:timers` instead"
56
+ },
57
+ {
58
+ name: "clearImmediate",
59
+ message: "Import clearImmediate from `node:timers` instead"
60
+ }
61
+ ],
62
+ "unicorn/prefer-node-protocol": 2,
63
+ "unicorn/require-post-message-target-origin": 0
64
+ };
65
+ const config = [{
66
+ name: "mahir/node",
67
+ languageOptions: {
68
+ globals: {
69
+ ...n.configs["recommended-module"].globals,
70
+ ...globals.node
71
+ },
72
+ parserOptions: { ecmaFeatures: { globalReturn: true } }
73
+ },
74
+ plugins: { n },
75
+ rules
76
+ }];
77
+
78
+ //#endregion
79
+ export { config as default };
80
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","names":[],"sources":["../src/node.ts"],"sourcesContent":["import n from 'eslint-plugin-n';\nimport globals from 'globals';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'n/callback-return': 2,\n\t'n/handle-callback-err': 2,\n\t'n/no-callback-literal': 2,\n\t'n/no-deprecated-api': 2,\n\t'n/no-exports-assign': 2,\n\t'n/no-new-require': 2,\n\t'n/no-path-concat': 2,\n\t'n/no-sync': [\n\t\t2,\n\t\t{\n\t\t\tallowAtRootLevel: true,\n\t\t\tignores: ['existsSync'],\n\t\t},\n\t],\n\t'n/no-unpublished-bin': 2,\n\t'n/prefer-global/buffer': [2, 'never'],\n\t'n/prefer-global/console': [2, 'always'],\n\t'n/prefer-global/process': [2, 'never'],\n\t'n/prefer-global/text-decoder': [2, 'never'],\n\t'n/prefer-global/text-encoder': [2, 'never'],\n\t'n/prefer-global/url': [2, 'never'],\n\t'n/prefer-global/url-search-params': [2, 'never'],\n\t'n/process-exit-as-throw': 2,\n\t'n/hashbang': [\n\t\t2,\n\t\t{\n\t\t\tconvertPath: {\n\t\t\t\t'src/**/*.js': ['^src/(.+?)\\\\.js$', 'dist/$1.js'],\n\t\t\t},\n\t\t},\n\t],\n\t'no-restricted-globals': [\n\t\t2,\n\t\t{ name: 'Buffer', message: 'Import Buffer from `node:buffer` instead' },\n\t\t{ name: 'process', message: 'Import process from `node:process` instead' },\n\t\t{ name: 'setTimeout', message: 'Import setTimeout from `node:timers` instead' },\n\t\t{ name: 'setInterval', message: 'Import setInterval from `node:timers` instead' },\n\t\t{ name: 'setImmediate', message: 'Import setImmediate from `node:timers` instead' },\n\t\t{ name: 'clearTimeout', message: 'Import clearTimeout from `node:timers` instead' },\n\t\t{ name: 'clearInterval', message: 'Import clearInterval from `node:timers` instead' },\n\t\t{ name: 'clearImmediate', message: 'Import clearImmediate from `node:timers` instead' },\n\t],\n\t'unicorn/prefer-node-protocol': 2,\n\t'unicorn/require-post-message-target-origin': 0,\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tname: 'mahir/node',\n\t\tlanguageOptions: {\n\t\t\tglobals: {\n\t\t\t\t...n.configs['recommended-module'].globals,\n\t\t\t\t...globals.node,\n\t\t\t},\n\t\t\tparserOptions: {\n\t\t\t\tecmaFeatures: {\n\t\t\t\t\tglobalReturn: true,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tplugins: {\n\t\t\tn,\n\t\t},\n\t\trules,\n\t},\n];\n\nexport default config;\n"],"mappings":";;;;AAKA,MAAM,QAAmC;CACxC,qBAAqB;CACrB,yBAAyB;CACzB,yBAAyB;CACzB,uBAAuB;CACvB,uBAAuB;CACvB,oBAAoB;CACpB,oBAAoB;CACpB,aAAa,CACZ,GACA;EACC,kBAAkB;EAClB,SAAS,CAAC,YAAY;CACvB,CACD;CACA,wBAAwB;CACxB,0BAA0B,CAAC,GAAG,OAAO;CACrC,2BAA2B,CAAC,GAAG,QAAQ;CACvC,2BAA2B,CAAC,GAAG,OAAO;CACtC,gCAAgC,CAAC,GAAG,OAAO;CAC3C,gCAAgC,CAAC,GAAG,OAAO;CAC3C,uBAAuB,CAAC,GAAG,OAAO;CAClC,qCAAqC,CAAC,GAAG,OAAO;CAChD,2BAA2B;CAC3B,cAAc,CACb,GACA,EACC,aAAa,EACZ,eAAe,CAAC,oBAAoB,YAAY,EACjD,EACD,CACD;CACA,yBAAyB;EACxB;EACA;GAAE,MAAM;GAAU,SAAS;EAA2C;EACtE;GAAE,MAAM;GAAW,SAAS;EAA6C;EACzE;GAAE,MAAM;GAAc,SAAS;EAA+C;EAC9E;GAAE,MAAM;GAAe,SAAS;EAAgD;EAChF;GAAE,MAAM;GAAgB,SAAS;EAAiD;EAClF;GAAE,MAAM;GAAgB,SAAS;EAAiD;EAClF;GAAE,MAAM;GAAiB,SAAS;EAAkD;EACpF;GAAE,MAAM;GAAkB,SAAS;EAAmD;CACvF;CACA,gCAAgC;CAChC,8CAA8C;AAC/C;AAEA,MAAM,SAA0C,CAC/C;CACC,MAAM;CACN,iBAAiB;EAChB,SAAS;GACR,GAAG,EAAE,QAAQ,qBAAqB,CAAC;GACnC,GAAG,QAAQ;EACZ;EACA,eAAe,EACd,cAAc,EACb,cAAc,KACf,EACD;CACD;CACA,SAAS,EACR,EACD;CACA;AACD,CACD"}
@@ -0,0 +1,6 @@
1
+ import { TSESLint } from "@typescript-eslint/utils";
2
+ //#region src/plugins/api-error.d.ts
3
+ declare const plugin: TSESLint.FlatConfig.Plugin;
4
+ //#endregion
5
+ export { plugin as default };
6
+ //# sourceMappingURL=api-error.d.ts.map