eslint-config-kytnacode-react 0.1.0 → 0.3.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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +27 -29
- package/dist/index.js.map +1 -1
- package/index.ts +34 -0
- package/package.json +8 -14
- package/tsconfig.json +34 -0
- package/dist/index.d.ts.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
reactHooks.configs.flat.recommended,
|
|
17
|
-
reactRefresh.configs.vite,
|
|
18
|
-
jsxa11y.flatConfigs.strict,
|
|
19
|
-
],
|
|
20
|
-
languageOptions: {
|
|
21
|
-
parserOptions: {
|
|
22
|
-
ecmaFeatures: {
|
|
23
|
-
jsx: true,
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
import react from "eslint-plugin-react";
|
|
3
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
react.configs.flat["jsx-runtime"],
|
|
7
|
+
reactHooks.configs.flat.recommended,
|
|
8
|
+
{
|
|
9
|
+
files: ["**/*.{jsx,mjsx,tsx,mtsx}"],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
globals: globals.browser,
|
|
12
|
+
parserOptions: {
|
|
13
|
+
ecmaFeatures: {
|
|
14
|
+
jsx: true,
|
|
15
|
+
},
|
|
24
16
|
},
|
|
25
17
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
plugins: {
|
|
19
|
+
react,
|
|
20
|
+
},
|
|
21
|
+
settings: {
|
|
22
|
+
react: {
|
|
23
|
+
version: "detect",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
rules: {
|
|
27
|
+
"react/bolean-prop-naming": "error",
|
|
28
|
+
"react/iframe-missing-sandbox": "error",
|
|
31
29
|
},
|
|
32
30
|
},
|
|
33
|
-
|
|
31
|
+
]);
|
|
34
32
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,eAAe,YAAY,CAAC;IAC1B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAE;IAClC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW;IACnC;QACE,KAAK,EAAE,CAAC,0BAA0B,CAAC;QACnC,eAAe,EAAE;YACf,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,aAAa,EAAE;gBACb,YAAY,EAAE;oBACZ,GAAG,EAAE,IAAI;iBACV;aACF;SACF;QACD,OAAO,EAAE;YACP,KAAK;SACN;QACD,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,OAAO,EAAE,QAAQ;aAClB;SACF;QACD,KAAK,EAAE;YACL,0BAA0B,EAAE,OAAO;YACnC,8BAA8B,EAAE,OAAO;SACxC;KACF;CACF,CAAC,CAAC","sourcesContent":["import { defineConfig } from \"eslint/config\";\nimport react from \"eslint-plugin-react\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\nimport globals from \"globals\";\n\nexport default defineConfig([\n react.configs.flat[\"jsx-runtime\"]!,\n reactHooks.configs.flat.recommended,\n {\n files: [\"**/*.{jsx,mjsx,tsx,mtsx}\"],\n languageOptions: {\n globals: globals.browser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n },\n plugins: {\n react,\n },\n settings: {\n react: {\n version: \"detect\",\n },\n },\n rules: {\n \"react/bolean-prop-naming\": \"error\",\n \"react/iframe-missing-sandbox\": \"error\",\n },\n },\n]);\n"]}
|
package/index.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
import react from "eslint-plugin-react";
|
|
3
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
|
|
6
|
+
export default defineConfig([
|
|
7
|
+
{
|
|
8
|
+
files: ["**/*.{jsx,mjsx,tsx,mtsx}"],
|
|
9
|
+
extends: [
|
|
10
|
+
react.configs.flat["jsx-runtime"]!,
|
|
11
|
+
reactHooks.configs.flat.recommended,
|
|
12
|
+
],
|
|
13
|
+
languageOptions: {
|
|
14
|
+
globals: globals.browser,
|
|
15
|
+
parserOptions: {
|
|
16
|
+
ecmaFeatures: {
|
|
17
|
+
jsx: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
plugins: {
|
|
22
|
+
react,
|
|
23
|
+
},
|
|
24
|
+
settings: {
|
|
25
|
+
react: {
|
|
26
|
+
version: "detect",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
rules: {
|
|
30
|
+
"react/bolean-prop-naming": "error",
|
|
31
|
+
"react/iframe-missing-sandbox": "error",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-kytnacode-react",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"module": "index.ts",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
5
7
|
"type": "module",
|
|
6
8
|
"scripts": {
|
|
7
|
-
"build": "tsc
|
|
8
|
-
"prepublishOnly": "bun run build"
|
|
9
|
+
"build": "tsc"
|
|
9
10
|
},
|
|
10
11
|
"devDependencies": {
|
|
11
|
-
"@types/bun": "latest"
|
|
12
|
-
"@types/eslint-plugin-jsx-a11y": "^6.10.1"
|
|
12
|
+
"@types/bun": "latest"
|
|
13
13
|
},
|
|
14
|
-
"files": [
|
|
15
|
-
"./dist"
|
|
16
|
-
],
|
|
17
14
|
"peerDependencies": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
15
|
+
"eslint": "^10.5.0",
|
|
16
|
+
"typescript": "^5"
|
|
20
17
|
},
|
|
21
18
|
"dependencies": {
|
|
22
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
23
|
-
"eslint-plugin-react": "^7.37.5",
|
|
24
19
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
25
|
-
"
|
|
26
|
-
"globals": "^17.5.0"
|
|
20
|
+
"globals": "^17.7.0"
|
|
27
21
|
}
|
|
28
22
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Environment setup & latest features
|
|
4
|
+
"lib": [
|
|
5
|
+
"ESNext"
|
|
6
|
+
],
|
|
7
|
+
"target": "ESNext",
|
|
8
|
+
"module": "Preserve",
|
|
9
|
+
"types": [
|
|
10
|
+
"bun"
|
|
11
|
+
],
|
|
12
|
+
"outDir": "dist",
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"inlineSources": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
// Bundler mode
|
|
18
|
+
"moduleResolution": "bundler",
|
|
19
|
+
"verbatimModuleSyntax": true,
|
|
20
|
+
// Best practices
|
|
21
|
+
"strict": true,
|
|
22
|
+
"skipLibCheck": true,
|
|
23
|
+
"noFallthroughCasesInSwitch": true,
|
|
24
|
+
"noUncheckedIndexedAccess": true,
|
|
25
|
+
"noImplicitOverride": true,
|
|
26
|
+
// Some stricter flags (disabled by default)
|
|
27
|
+
"noUnusedLocals": false,
|
|
28
|
+
"noUnusedParameters": false,
|
|
29
|
+
"noPropertyAccessFromIndexSignature": false
|
|
30
|
+
},
|
|
31
|
+
"exclude": [
|
|
32
|
+
"dist"
|
|
33
|
+
]
|
|
34
|
+
}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAOA,wBA8BG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../index.ts"],"version":"5.9.3"}
|