@xylabs/eslint-config-react-flat 3.15.15 → 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.
- package/dist/neutral/index.d.ts +6 -3
- package/dist/neutral/index.mjs +0 -6
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.d.ts +6 -3
- package/dist/node/index.mjs +0 -6
- package/dist/node/index.mjs.map +1 -1
- package/package.json +7 -11
- package/src/react/index.ts +0 -6
- package/dist/neutral/index.cjs +0 -89
- package/dist/neutral/index.cjs.map +0 -1
- package/dist/neutral/index.d.cts +0 -4
- package/dist/neutral/index.d.cts.map +0 -1
- package/dist/neutral/index.d.mts +0 -4
- package/dist/neutral/index.d.mts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/react/index.d.cts +0 -3
- package/dist/neutral/react/index.d.cts.map +0 -1
- package/dist/neutral/react/index.d.mts +0 -3
- package/dist/neutral/react/index.d.mts.map +0 -1
- package/dist/neutral/react/index.d.ts +0 -3
- package/dist/neutral/react/index.d.ts.map +0 -1
- package/dist/node/index.cjs +0 -94
- package/dist/node/index.cjs.map +0 -1
- package/dist/node/index.d.cts +0 -4
- package/dist/node/index.d.cts.map +0 -1
- package/dist/node/index.d.mts +0 -4
- package/dist/node/index.d.mts.map +0 -1
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/react/index.d.cts +0 -3
- package/dist/node/react/index.d.cts.map +0 -1
- package/dist/node/react/index.d.mts +0 -3
- package/dist/node/react/index.d.mts.map +0 -1
- package/dist/node/react/index.d.ts +0 -3
- package/dist/node/react/index.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
declare const reactConfig: Linter.Config;
|
|
4
|
+
|
|
5
|
+
declare const config: Linter.Config[];
|
|
6
|
+
|
|
7
|
+
export { config, reactConfig };
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -34,12 +34,6 @@ var reactConfig = {
|
|
|
34
34
|
rules: {
|
|
35
35
|
...eslintReactPlugin.configs.recommended.rules,
|
|
36
36
|
...reactPlugin.configs.flat.recommended.rules,
|
|
37
|
-
"react-hooks/exhaustive-deps": [
|
|
38
|
-
"warn",
|
|
39
|
-
{
|
|
40
|
-
additionalHooks: "(useAsyncEffect|usePromise)"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
37
|
"react/prop-types": [
|
|
44
38
|
"off"
|
|
45
39
|
]
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,SAASA,UAAUC,gBAAgB;;;ACAnC,OAAOC,uBAAuB;AAC9B,OAAOC,cAAc;AAErB,OAAOC,iBAAiB;AACxB,OAAOC,aAAa;AAEb,IAAMC,cAAc;EACzBC,OAAO;IAAC;;EACR,GAAGL,kBAAkBM,QAAQC;EAC7BC,SAAS;IACPC,OAAOP;IACP,GAAGF,kBAAkBM,QAAQC,YAAYC;EAC3C;EACAE,UAAU;IACRD,OAAO;MACLE,SAAS;IACX;EACF;EACAC,iBAAiB;IACfC,QAAQZ;IACRa,eAAe;MACbC,cAAc;QACZC,KAAK;MACP;IACF;IACAb,SAAS;MACP,GAAGA,QAAQc;IACb;EACF;EACAC,OAAO;IACL,GAAGlB,kBAAkBM,QAAQC,YAAYW;IACzC,GAAGhB,YAAYI,QAAQa,KAAKZ,YAAYW;IACxC,oBAAoB;MAAC;;EACvB;AACF;;;AD7BO,IAAME,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","eslintReactPlugin","tsParser","reactPlugin","globals","reactConfig","files","configs","recommended","plugins","react","settings","version","languageOptions","parser","parserOptions","ecmaFeatures","jsx","browser","rules","flat","config","xyConfig","reactConfig"]}
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
declare const reactConfig: Linter.Config;
|
|
4
|
+
|
|
5
|
+
declare const config: Linter.Config[];
|
|
6
|
+
|
|
7
|
+
export { config, reactConfig };
|
package/dist/node/index.mjs
CHANGED
|
@@ -34,12 +34,6 @@ var reactConfig = {
|
|
|
34
34
|
rules: {
|
|
35
35
|
...eslintReactPlugin.configs.recommended.rules,
|
|
36
36
|
...reactPlugin.configs.flat.recommended.rules,
|
|
37
|
-
"react-hooks/exhaustive-deps": [
|
|
38
|
-
"warn",
|
|
39
|
-
{
|
|
40
|
-
additionalHooks: "(useAsyncEffect|usePromise)"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
37
|
"react/prop-types": [
|
|
44
38
|
"off"
|
|
45
39
|
]
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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,SAASA,UAAUC,gBAAgB;;;ACAnC,OAAOC,uBAAuB;AAC9B,OAAOC,cAAc;AAErB,OAAOC,iBAAiB;AACxB,OAAOC,aAAa;AAEb,IAAMC,cAAc;EACzBC,OAAO;IAAC;;EACR,GAAGL,kBAAkBM,QAAQC;EAC7BC,SAAS;IACPC,OAAOP;IACP,GAAGF,kBAAkBM,QAAQC,YAAYC;EAC3C;EACAE,UAAU;IACRD,OAAO;MACLE,SAAS;IACX;EACF;EACAC,iBAAiB;IACfC,QAAQZ;IACRa,eAAe;MACbC,cAAc;QACZC,KAAK;MACP;IACF;IACAb,SAAS;MACP,GAAGA,QAAQc;IACb;EACF;EACAC,OAAO;IACL,GAAGlB,kBAAkBM,QAAQC,YAAYW;IACzC,GAAGhB,YAAYI,QAAQa,KAAKZ,YAAYW;IACxC,oBAAoB;MAAC;;EACvB;AACF;;;AD7BO,IAAME,SAA0B;KAAIC;EAAUC;;","names":["config","xyConfig","eslintReactPlugin","tsParser","reactPlugin","globals","reactConfig","files","configs","recommended","plugins","react","settings","version","languageOptions","parser","parserOptions","ecmaFeatures","jsx","browser","rules","flat","config","xyConfig","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.
|
|
14
|
-
"@xylabs/eslint-config-flat": "^
|
|
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": "^
|
|
21
|
-
"@xylabs/tsconfig": "^
|
|
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": "
|
|
66
|
-
"type": "module"
|
|
60
|
+
"version": "4.0.0-rc.10",
|
|
61
|
+
"type": "module",
|
|
62
|
+
"stableVersion": "3.15.16"
|
|
67
63
|
}
|
package/src/react/index.ts
CHANGED
|
@@ -30,12 +30,6 @@ export const reactConfig = {
|
|
|
30
30
|
rules: {
|
|
31
31
|
...eslintReactPlugin.configs.recommended.rules,
|
|
32
32
|
...reactPlugin.configs.flat.recommended.rules,
|
|
33
|
-
'react-hooks/exhaustive-deps': [
|
|
34
|
-
'warn',
|
|
35
|
-
{
|
|
36
|
-
additionalHooks: '(useAsyncEffect|usePromise)',
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
33
|
'react/prop-types': ['off'],
|
|
40
34
|
},
|
|
41
35
|
} as unknown as Linter.Config
|
package/dist/neutral/index.cjs
DELETED
|
@@ -1,89 +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-hooks/exhaustive-deps": [
|
|
73
|
-
"warn",
|
|
74
|
-
{
|
|
75
|
-
additionalHooks: "(useAsyncEffect|usePromise)"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"react/prop-types": [
|
|
79
|
-
"off"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// src/index.ts
|
|
85
|
-
var config = [
|
|
86
|
-
...import_eslint_config_flat.config,
|
|
87
|
-
reactConfig
|
|
88
|
-
];
|
|
89
|
-
//# 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-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],\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,+BAA+B;MAC7B;MACA;QACEE,iBAAiB;MACnB;;IAEF,oBAAoB;MAAC;;EACvB;AACF;;;ADnCO,IAAMC,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","additionalHooks","config","xyConfig","reactConfig"]}
|
package/dist/neutral/index.d.cts
DELETED
|
@@ -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"}
|
package/dist/neutral/index.d.mts
DELETED
|
@@ -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 +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,EAkCR,MAAM,CAAC,MAAM,CAAA"}
|
|
@@ -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,EAkCR,MAAM,CAAC,MAAM,CAAA"}
|
|
@@ -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,EAkCR,MAAM,CAAC,MAAM,CAAA"}
|
package/dist/node/index.cjs
DELETED
|
@@ -1,94 +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-hooks/exhaustive-deps": [
|
|
73
|
-
"warn",
|
|
74
|
-
{
|
|
75
|
-
additionalHooks: "(useAsyncEffect|usePromise)"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"react/prop-types": [
|
|
79
|
-
"off"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// src/index.ts
|
|
85
|
-
var config = [
|
|
86
|
-
...import_eslint_config_flat.config,
|
|
87
|
-
reactConfig
|
|
88
|
-
];
|
|
89
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
-
0 && (module.exports = {
|
|
91
|
-
config,
|
|
92
|
-
reactConfig
|
|
93
|
-
});
|
|
94
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
DELETED
|
@@ -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-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks: '(useAsyncEffect|usePromise)',\n },\n ],\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,+BAA+B;MAC7B;MACA;QACEE,iBAAiB;MACnB;;IAEF,oBAAoB;MAAC;;EACvB;AACF;;;ADnCO,IAAMC,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","additionalHooks","config","xyConfig","reactConfig"]}
|
package/dist/node/index.d.cts
DELETED
|
@@ -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"}
|
package/dist/node/index.d.mts
DELETED
|
@@ -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"}
|
package/dist/node/index.d.ts.map
DELETED
|
@@ -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/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,WAAW,EAkCR,MAAM,CAAC,MAAM,CAAA"}
|
|
@@ -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,EAkCR,MAAM,CAAC,MAAM,CAAA"}
|
|
@@ -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,EAkCR,MAAM,CAAC,MAAM,CAAA"}
|