@xylabs/eslint-config-react-flat 3.15.16 → 4.0.0-rc.10

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.
@@ -1,4 +1,7 @@
1
1
  import { Linter } from 'eslint';
2
- export declare const config: Linter.Config[];
3
- export { reactConfig } from './react/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
2
+
3
+ declare const reactConfig: Linter.Config;
4
+
5
+ declare const config: Linter.Config[];
6
+
7
+ export { config, reactConfig };
@@ -1,4 +1,7 @@
1
1
  import { Linter } from 'eslint';
2
- export declare const config: Linter.Config[];
3
- export { reactConfig } from './react/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
2
+
3
+ declare const reactConfig: Linter.Config;
4
+
5
+ declare const config: Linter.Config[];
6
+
7
+ export { config, reactConfig };
package/package.json CHANGED
@@ -10,15 +10,15 @@
10
10
  "url": "https://github.com/xylabs/eslint-config/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@eslint-react/eslint-plugin": "^1.8.2",
14
- "@xylabs/eslint-config-flat": "^3.15.16",
13
+ "@eslint-react/eslint-plugin": "^1.9.0",
14
+ "@xylabs/eslint-config-flat": "^4.0.0-rc.10",
15
15
  "eslint-plugin-react": "^7.35.0",
16
16
  "globals": "^15.9.0"
17
17
  },
18
18
  "description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
19
19
  "devDependencies": {
20
- "@xylabs/ts-scripts-yarn3": "^3.15.16",
21
- "@xylabs/tsconfig": "^3.15.16",
20
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.10",
21
+ "@xylabs/tsconfig": "^4.0.0-rc.10",
22
22
  "eslint": "^9.8.0",
23
23
  "typescript": "^5.5.4"
24
24
  },
@@ -40,17 +40,12 @@
40
40
  "license": "LGPL-3.0-only",
41
41
  "exports": {
42
42
  "node": {
43
- "require": {
44
- "types": "./dist/node/index.d.cts",
45
- "default": "./dist/node/index.cjs"
46
- },
47
43
  "import": {
48
44
  "types": "./dist/node/index.d.ts",
49
45
  "default": "./dist/node/index.mjs"
50
46
  }
51
47
  }
52
48
  },
53
- "main": "./dist/node/index.cjs",
54
49
  "module": "./dist/node/index.mjs",
55
50
  "types": "./dist/node/index.d.ts",
56
51
  "name": "@xylabs/eslint-config-react-flat",
@@ -62,6 +57,7 @@
62
57
  "url": "https://github.com/xylabs/config.git"
63
58
  },
64
59
  "sideEffects": false,
65
- "version": "3.15.16",
66
- "type": "module"
60
+ "version": "4.0.0-rc.10",
61
+ "type": "module",
62
+ "stableVersion": "3.15.16"
67
63
  }
@@ -1,83 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
33
- config: () => config,
34
- reactConfig: () => reactConfig
35
- });
36
- module.exports = __toCommonJS(src_exports);
37
- var import_eslint_config_flat = require("@xylabs/eslint-config-flat");
38
-
39
- // src/react/index.ts
40
- var import_eslint_plugin = __toESM(require("@eslint-react/eslint-plugin"), 1);
41
- var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
42
- var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
43
- var import_globals = __toESM(require("globals"), 1);
44
- var reactConfig = {
45
- files: [
46
- "**/*.{ts,tsx}"
47
- ],
48
- ...import_eslint_plugin.default.configs.recommended,
49
- plugins: {
50
- react: import_eslint_plugin_react.default,
51
- ...import_eslint_plugin.default.configs.recommended.plugins
52
- },
53
- settings: {
54
- react: {
55
- version: "detect"
56
- }
57
- },
58
- languageOptions: {
59
- parser: import_parser.default,
60
- parserOptions: {
61
- ecmaFeatures: {
62
- jsx: true
63
- }
64
- },
65
- globals: {
66
- ...import_globals.default.browser
67
- }
68
- },
69
- rules: {
70
- ...import_eslint_plugin.default.configs.recommended.rules,
71
- ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
72
- "react/prop-types": [
73
- "off"
74
- ]
75
- }
76
- };
77
-
78
- // src/index.ts
79
- var config = [
80
- ...import_eslint_config_flat.config,
81
- reactConfig
82
- ];
83
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import eslintReactPlugin from '@eslint-react/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport globals from 'globals'\n\nexport const reactConfig = {\n files: ['**/*.{ts,tsx}'],\n ...eslintReactPlugin.configs.recommended,\n plugins: {\n react: reactPlugin,\n ...eslintReactPlugin.configs.recommended.plugins,\n },\n settings: {\n react: {\n version: 'detect',\n },\n },\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n globals: {\n ...globals.browser,\n },\n },\n rules: {\n ...eslintReactPlugin.configs.recommended.rules,\n ...reactPlugin.configs.flat.recommended.rules,\n 'react/prop-types': ['off'],\n },\n} as unknown as Linter.Config\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;gCAAmC;;;ACAnC,2BAA8B;AAC9B,oBAAqB;AAErB,iCAAwB;AACxB,qBAAoB;AAEb,IAAMA,cAAc;EACzBC,OAAO;IAAC;;EACR,GAAGC,qBAAAA,QAAkBC,QAAQC;EAC7BC,SAAS;IACPC,OAAOC,2BAAAA;IACP,GAAGL,qBAAAA,QAAkBC,QAAQC,YAAYC;EAC3C;EACAG,UAAU;IACRF,OAAO;MACLG,SAAS;IACX;EACF;EACAC,iBAAiB;IACfC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QACZC,KAAK;MACP;IACF;IACAC,SAAS;MACP,GAAGA,eAAAA,QAAQC;IACb;EACF;EACAC,OAAO;IACL,GAAGhB,qBAAAA,QAAkBC,QAAQC,YAAYc;IACzC,GAAGX,2BAAAA,QAAYJ,QAAQgB,KAAKf,YAAYc;IACxC,oBAAoB;MAAC;;EACvB;AACF;;;AD7BO,IAAME,SAA0B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","files","eslintReactPlugin","configs","recommended","plugins","react","reactPlugin","settings","version","languageOptions","parser","tsParser","parserOptions","ecmaFeatures","jsx","globals","browser","rules","flat","config","xyConfig","reactConfig"]}
@@ -1,4 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const config: Linter.Config[];
3
- export { reactConfig } from './react/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const config: Linter.Config[];
3
- export { reactConfig } from './react/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const reactConfig: Linter.Config;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EA4BR,MAAM,CAAC,MAAM,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const reactConfig: Linter.Config;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EA4BR,MAAM,CAAC,MAAM,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const reactConfig: Linter.Config;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EA4BR,MAAM,CAAC,MAAM,CAAA"}
@@ -1,88 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
33
- config: () => config,
34
- reactConfig: () => reactConfig
35
- });
36
- module.exports = __toCommonJS(src_exports);
37
- var import_eslint_config_flat = require("@xylabs/eslint-config-flat");
38
-
39
- // src/react/index.ts
40
- var import_eslint_plugin = __toESM(require("@eslint-react/eslint-plugin"), 1);
41
- var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
42
- var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
43
- var import_globals = __toESM(require("globals"), 1);
44
- var reactConfig = {
45
- files: [
46
- "**/*.{ts,tsx}"
47
- ],
48
- ...import_eslint_plugin.default.configs.recommended,
49
- plugins: {
50
- react: import_eslint_plugin_react.default,
51
- ...import_eslint_plugin.default.configs.recommended.plugins
52
- },
53
- settings: {
54
- react: {
55
- version: "detect"
56
- }
57
- },
58
- languageOptions: {
59
- parser: import_parser.default,
60
- parserOptions: {
61
- ecmaFeatures: {
62
- jsx: true
63
- }
64
- },
65
- globals: {
66
- ...import_globals.default.browser
67
- }
68
- },
69
- rules: {
70
- ...import_eslint_plugin.default.configs.recommended.rules,
71
- ...import_eslint_plugin_react.default.configs.flat.recommended.rules,
72
- "react/prop-types": [
73
- "off"
74
- ]
75
- }
76
- };
77
-
78
- // src/index.ts
79
- var config = [
80
- ...import_eslint_config_flat.config,
81
- reactConfig
82
- ];
83
- // Annotate the CommonJS export names for ESM import in node:
84
- 0 && (module.exports = {
85
- config,
86
- reactConfig
87
- });
88
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/react/index.ts"],"sourcesContent":["import { config as xyConfig } from '@xylabs/eslint-config-flat'\nimport { Linter } from 'eslint'\n\nimport { reactConfig } from './react/index.ts'\n\nexport const config: Linter.Config[] = [...xyConfig, reactConfig]\n\nexport { reactConfig } from './react/index.ts'\n","import eslintReactPlugin from '@eslint-react/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport { Linter } from 'eslint'\nimport reactPlugin from 'eslint-plugin-react'\nimport globals from 'globals'\n\nexport const reactConfig = {\n files: ['**/*.{ts,tsx}'],\n ...eslintReactPlugin.configs.recommended,\n plugins: {\n react: reactPlugin,\n ...eslintReactPlugin.configs.recommended.plugins,\n },\n settings: {\n react: {\n version: 'detect',\n },\n },\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n globals: {\n ...globals.browser,\n },\n },\n rules: {\n ...eslintReactPlugin.configs.recommended.rules,\n ...reactPlugin.configs.flat.recommended.rules,\n 'react/prop-types': ['off'],\n },\n} as unknown as Linter.Config\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;gCAAmC;;;ACAnC,2BAA8B;AAC9B,oBAAqB;AAErB,iCAAwB;AACxB,qBAAoB;AAEb,IAAMA,cAAc;EACzBC,OAAO;IAAC;;EACR,GAAGC,qBAAAA,QAAkBC,QAAQC;EAC7BC,SAAS;IACPC,OAAOC,2BAAAA;IACP,GAAGL,qBAAAA,QAAkBC,QAAQC,YAAYC;EAC3C;EACAG,UAAU;IACRF,OAAO;MACLG,SAAS;IACX;EACF;EACAC,iBAAiB;IACfC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QACZC,KAAK;MACP;IACF;IACAC,SAAS;MACP,GAAGA,eAAAA,QAAQC;IACb;EACF;EACAC,OAAO;IACL,GAAGhB,qBAAAA,QAAkBC,QAAQC,YAAYc;IACzC,GAAGX,2BAAAA,QAAYJ,QAAQgB,KAAKf,YAAYc;IACxC,oBAAoB;MAAC;;EACvB;AACF;;;AD7BO,IAAME,SAA0B;KAAIC,0BAAAA;EAAUC;;","names":["reactConfig","files","eslintReactPlugin","configs","recommended","plugins","react","reactPlugin","settings","version","languageOptions","parser","tsParser","parserOptions","ecmaFeatures","jsx","globals","browser","rules","flat","config","xyConfig","reactConfig"]}
@@ -1,4 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const config: Linter.Config[];
3
- export { reactConfig } from './react/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const config: Linter.Config[];
3
- export { reactConfig } from './react/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const reactConfig: Linter.Config;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EA4BR,MAAM,CAAC,MAAM,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const reactConfig: Linter.Config;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EA4BR,MAAM,CAAC,MAAM,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Linter } from 'eslint';
2
- export declare const reactConfig: Linter.Config;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EA4BR,MAAM,CAAC,MAAM,CAAA"}