eslint-config-kytnacode-react 0.1.0 → 0.3.0

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 CHANGED
@@ -1,3 +1,2 @@
1
1
  declare const _default: import("eslint/config").Config[];
2
2
  export default _default;
3
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,34 +1,32 @@
1
- import { defineConfig } from 'eslint/config';
2
- import globals from 'globals';
3
- import react from 'eslint-plugin-react';
4
- import reactHooks from 'eslint-plugin-react-hooks';
5
- import reactRefresh from 'eslint-plugin-react-refresh';
6
- import jsxa11y from 'eslint-plugin-jsx-a11y';
7
- export default defineConfig({
8
- files: ['**/*.{jsx,mjsx,tsx,mtsx}'],
9
- plugins: {
10
- react,
11
- 'jsx-a11y': jsxa11y,
12
- },
13
- extends: [
14
- react.configs.flat.recommended,
15
- react.configs.flat['jsx-runtime'],
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
- globals: globals.browser,
27
- },
28
- settings: {
29
- react: {
30
- version: 'detect',
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,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAE7C,eAAe,YAAY,CAAC;IAC1B,KAAK,EAAE,CAAC,0BAA0B,CAAC;IAEnC,OAAO,EAAE;QACP,KAAK;QACL,UAAU,EAAE,OAAO;KACpB;IAED,OAAO,EAAE;QACP,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAY;QAC/B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAE;QAClC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW;QACnC,YAAY,CAAC,OAAO,CAAC,IAAI;QACzB,OAAO,CAAC,WAAW,CAAC,MAAM;KAC3B;IAED,eAAe,EAAE;QACf,aAAa,EAAE;YACb,YAAY,EAAE;gBACZ,GAAG,EAAE,IAAI;aACV;SACF;QACD,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB;IAED,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;SAClB;KACF;CACF,CAAC,CAAC"}
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,32 @@
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
+ react.configs.flat["jsx-runtime"]!,
8
+ reactHooks.configs.flat.recommended,
9
+ {
10
+ files: ["**/*.{jsx,mjsx,tsx,mtsx}"],
11
+ languageOptions: {
12
+ globals: globals.browser,
13
+ parserOptions: {
14
+ ecmaFeatures: {
15
+ jsx: true,
16
+ },
17
+ },
18
+ },
19
+ plugins: {
20
+ react,
21
+ },
22
+ settings: {
23
+ react: {
24
+ version: "detect",
25
+ },
26
+ },
27
+ rules: {
28
+ "react/bolean-prop-naming": "error",
29
+ "react/iframe-missing-sandbox": "error",
30
+ },
31
+ },
32
+ ]);
package/package.json CHANGED
@@ -1,28 +1,22 @@
1
1
  {
2
2
  "name": "eslint-config-kytnacode-react",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
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 --build .",
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
- "typescript": "^5",
19
- "eslint": ">= 9"
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
- "eslint-plugin-react-refresh": "^0.5.2",
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
+ }
@@ -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"}