@kasoa/eslint-config 0.0.23 → 0.0.25

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 (61) hide show
  1. package/dist/src/base/sonarjs.d.ts.map +1 -1
  2. package/dist/src/base/sonarjs.js +17 -2
  3. package/dist/src/base/unicorn-x.d.ts.map +1 -1
  4. package/dist/src/base/unicorn-x.js +0 -1
  5. package/package.json +4 -4
  6. package/src/base/sonarjs.ts +17 -2
  7. package/src/base/unicorn-x.ts +0 -1
  8. package/dist/base/eslint.d.ts +0 -2
  9. package/dist/base/eslint.d.ts.map +0 -1
  10. package/dist/base/eslint.js +0 -22
  11. package/dist/base/import-lite.d.ts +0 -2
  12. package/dist/base/import-lite.d.ts.map +0 -1
  13. package/dist/base/import-lite.js +0 -8
  14. package/dist/base/index.d.ts +0 -2
  15. package/dist/base/index.d.ts.map +0 -1
  16. package/dist/base/index.js +0 -13
  17. package/dist/base/perfectionist.d.ts +0 -3
  18. package/dist/base/perfectionist.d.ts.map +0 -1
  19. package/dist/base/perfectionist.js +0 -52
  20. package/dist/base/regexp.d.ts +0 -2
  21. package/dist/base/regexp.d.ts.map +0 -1
  22. package/dist/base/regexp.js +0 -3
  23. package/dist/base/sonarjs.d.ts +0 -2
  24. package/dist/base/sonarjs.d.ts.map +0 -1
  25. package/dist/base/sonarjs.js +0 -9
  26. package/dist/base/typescript-eslint.d.ts +0 -2
  27. package/dist/base/typescript-eslint.d.ts.map +0 -1
  28. package/dist/base/typescript-eslint.js +0 -50
  29. package/dist/base/unicorn-x.d.ts +0 -2
  30. package/dist/base/unicorn-x.d.ts.map +0 -1
  31. package/dist/base/unicorn-x.js +0 -10
  32. package/dist/base/unused-imports.d.ts +0 -2
  33. package/dist/base/unused-imports.d.ts.map +0 -1
  34. package/dist/base/unused-imports.js +0 -11
  35. package/dist/base/vitest.d.ts +0 -2
  36. package/dist/base/vitest.d.ts.map +0 -1
  37. package/dist/base/vitest.js +0 -6
  38. package/dist/node/index.d.ts +0 -2
  39. package/dist/node/index.d.ts.map +0 -1
  40. package/dist/node/index.js +0 -4
  41. package/dist/node/n.d.ts +0 -2
  42. package/dist/node/n.d.ts.map +0 -1
  43. package/dist/node/n.js +0 -8
  44. package/dist/react/eslint-react.d.ts +0 -2
  45. package/dist/react/eslint-react.d.ts.map +0 -1
  46. package/dist/react/eslint-react.js +0 -11
  47. package/dist/react/index.d.ts +0 -2
  48. package/dist/react/index.d.ts.map +0 -1
  49. package/dist/react/index.js +0 -9
  50. package/dist/react/jsx-a11y.d.ts +0 -2
  51. package/dist/react/jsx-a11y.d.ts.map +0 -1
  52. package/dist/react/jsx-a11y.js +0 -6
  53. package/dist/react/react-hooks.d.ts +0 -2
  54. package/dist/react/react-hooks.d.ts.map +0 -1
  55. package/dist/react/react-hooks.js +0 -6
  56. package/dist/react/react-refresh.d.ts +0 -2
  57. package/dist/react/react-refresh.d.ts.map +0 -1
  58. package/dist/react/react-refresh.js +0 -6
  59. package/dist/react/react-you-might-not-need-an-effect.d.ts +0 -2
  60. package/dist/react/react-you-might-not-need-an-effect.d.ts.map +0 -1
  61. package/dist/react/react-you-might-not-need-an-effect.js +0 -6
@@ -1 +1 @@
1
- {"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAKxB,CAAC"}
1
+ {"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAoBxB,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import sonarjs from "eslint-plugin-sonarjs";
2
2
  import { defineConfig } from "eslint/config";
3
3
  const COGNITIVE_COMPLEXITY_THRESHOLD = 15;
4
- export const sonarjsConfig = defineConfig(sonarjs.configs.recommended, {
4
+ export const sonarjsConfig = defineConfig({
5
+ plugins: { sonarjs },
5
6
  rules: {
6
7
  "sonarjs/cognitive-complexity": ["warn", COGNITIVE_COMPLEXITY_THRESHOLD],
7
- "sonarjs/deprecation": "off",
8
+ "sonarjs/no-identical-expressions": "error",
9
+ "sonarjs/no-identical-conditions": "error",
10
+ "sonarjs/no-duplicated-branches": "error",
11
+ "sonarjs/no-nested-conditional": "error",
12
+ "sonarjs/no-gratuitous-expressions": "error",
13
+ "sonarjs/no-invariant-returns": "error",
14
+ "sonarjs/no-alphabetical-sort": "error",
15
+ "sonarjs/different-types-comparison": "error",
16
+ "sonarjs/no-nested-functions": "error",
17
+ "sonarjs/assertions-in-tests": "error",
18
+ "sonarjs/no-incomplete-assertions": "error",
19
+ "sonarjs/no-skipped-tests": "error",
20
+ "sonarjs/no-hardcoded-passwords": "error",
21
+ "sonarjs/no-hardcoded-ip": "error",
22
+ "sonarjs/code-eval": "error",
8
23
  },
9
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"unicorn-x.d.ts","sourceRoot":"","sources":["../../../src/base/unicorn-x.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,kCAOzB,CAAC"}
1
+ {"version":3,"file":"unicorn-x.d.ts","sourceRoot":"","sources":["../../../src/base/unicorn-x.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,kCAMzB,CAAC"}
@@ -2,7 +2,6 @@ import unicornX from "eslint-plugin-unicorn-x";
2
2
  import { defineConfig } from "eslint/config";
3
3
  export const unicornXConfig = defineConfig(unicornX.configs.recommended, {
4
4
  rules: {
5
- "unicorn-x/better-regex": "error",
6
5
  "unicorn-x/prefer-import-meta-properties": "error",
7
6
  "unicorn-x/prevent-abbreviations": "off",
8
7
  "unicorn-x/no-array-for-each": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kasoa/eslint-config",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Kasoa's ESLint config",
@@ -28,9 +28,9 @@
28
28
  "dist"
29
29
  ],
30
30
  "exports": {
31
- "./base": "./dist/base/index.js",
32
- "./node": "./dist/node/index.js",
33
- "./react": "./dist/react/index.js"
31
+ "./base": "./dist/src/base/index.js",
32
+ "./node": "./dist/src/node/index.js",
33
+ "./react": "./dist/src/react/index.js"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -3,9 +3,24 @@ import { defineConfig } from "eslint/config";
3
3
 
4
4
  const COGNITIVE_COMPLEXITY_THRESHOLD = 15;
5
5
 
6
- export const sonarjsConfig = defineConfig(sonarjs.configs.recommended, {
6
+ export const sonarjsConfig = defineConfig({
7
+ plugins: { sonarjs },
7
8
  rules: {
8
9
  "sonarjs/cognitive-complexity": ["warn", COGNITIVE_COMPLEXITY_THRESHOLD],
9
- "sonarjs/deprecation": "off",
10
+ "sonarjs/no-identical-expressions": "error",
11
+ "sonarjs/no-identical-conditions": "error",
12
+ "sonarjs/no-duplicated-branches": "error",
13
+ "sonarjs/no-nested-conditional": "error",
14
+ "sonarjs/no-gratuitous-expressions": "error",
15
+ "sonarjs/no-invariant-returns": "error",
16
+ "sonarjs/no-alphabetical-sort": "error",
17
+ "sonarjs/different-types-comparison": "error",
18
+ "sonarjs/no-nested-functions": "error",
19
+ "sonarjs/assertions-in-tests": "error",
20
+ "sonarjs/no-incomplete-assertions": "error",
21
+ "sonarjs/no-skipped-tests": "error",
22
+ "sonarjs/no-hardcoded-passwords": "error",
23
+ "sonarjs/no-hardcoded-ip": "error",
24
+ "sonarjs/code-eval": "error",
10
25
  },
11
26
  });
@@ -3,7 +3,6 @@ import { defineConfig } from "eslint/config";
3
3
 
4
4
  export const unicornXConfig = defineConfig(unicornX.configs.recommended, {
5
5
  rules: {
6
- "unicorn-x/better-regex": "error",
7
6
  "unicorn-x/prefer-import-meta-properties": "error",
8
7
  "unicorn-x/prevent-abbreviations": "off",
9
8
  "unicorn-x/no-array-for-each": "error",
@@ -1,2 +0,0 @@
1
- export declare const eslintConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=eslint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/base/eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAmBvB,CAAC"}
@@ -1,22 +0,0 @@
1
- import eslint from "@eslint/js";
2
- import { defineConfig } from "eslint/config";
3
- export const eslintConfig = defineConfig(eslint.configs.recommended, {
4
- rules: {
5
- curly: ["error", "multi-line", "consistent"],
6
- "default-case-last": "error",
7
- eqeqeq: "error",
8
- "grouped-accessor-pairs": ["error", "getBeforeSet"],
9
- "logical-assignment-operators": ["error", "always"],
10
- "max-params": "warn",
11
- "no-alert": "error",
12
- "no-console": ["warn", { allow: ["info", "warn", "error"] }],
13
- "no-constructor-return": "error",
14
- "no-else-return": ["error", { allowElseIf: false }],
15
- "no-param-reassign": ["error", { props: false }],
16
- "no-shadow": "off",
17
- "no-unneeded-ternary": "error",
18
- "no-useless-return": "error",
19
- "object-shorthand": "error",
20
- "prefer-template": "error",
21
- },
22
- });
@@ -1,2 +0,0 @@
1
- export declare const importLiteConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=import-lite.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-lite.d.ts","sourceRoot":"","sources":["../../src/base/import-lite.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,kCAK3B,CAAC"}
@@ -1,8 +0,0 @@
1
- import importLite from "eslint-plugin-import-lite";
2
- import { defineConfig } from "eslint/config";
3
- export const importLiteConfig = defineConfig(importLite.configs.recommended, {
4
- rules: {
5
- "import-lite/consistent-type-specifier-style": ["error", "top-level"],
6
- "import-lite/newline-after-import": "error",
7
- },
8
- });
@@ -1,2 +0,0 @@
1
- export declare const base: import("eslint/config").Config[];
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI,kCAchB,CAAC"}
@@ -1,13 +0,0 @@
1
- import gitignore from "eslint-config-flat-gitignore";
2
- import eslintConfigPrettier from "eslint-config-prettier/flat";
3
- import { defineConfig, globalIgnores } from "eslint/config";
4
- import { eslintConfig } from "./eslint.js";
5
- import { importLiteConfig } from "./import-lite.js";
6
- import { perfectionistConfig } from "./perfectionist.js";
7
- import { regexpConfig } from "./regexp.js";
8
- import { sonarjsConfig } from "./sonarjs.js";
9
- import { typescriptEslintConfig } from "./typescript-eslint.js";
10
- import { unicornXConfig } from "./unicorn-x.js";
11
- import { unusedImportsConfig } from "./unused-imports.js";
12
- import { vitestConfig } from "./vitest.js";
13
- export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig, unicornXConfig, vitestConfig, importLiteConfig, unusedImportsConfig, perfectionistConfig, sonarjsConfig, regexpConfig, eslintConfigPrettier);
@@ -1,3 +0,0 @@
1
- export declare const perfectionistConfig: import("eslint/config").Config[];
2
- export declare const perfectionistJsxConfig: import("eslint/config").Config[];
3
- //# sourceMappingURL=perfectionist.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/base/perfectionist.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,kCAwB9B,CAAC;AAEH,eAAO,MAAM,sBAAsB,kCAoBjC,CAAC"}
@@ -1,52 +0,0 @@
1
- import perfectionist from "eslint-plugin-perfectionist";
2
- import { defineConfig } from "eslint/config";
3
- const baseConfig = {
4
- order: "asc",
5
- type: "natural",
6
- };
7
- export const perfectionistConfig = defineConfig({
8
- plugins: { perfectionist },
9
- rules: {
10
- "perfectionist/sort-imports": [
11
- "error",
12
- {
13
- ...baseConfig,
14
- newlinesBetween: 0,
15
- groups: [
16
- "type-import",
17
- ["type-parent", "type-sibling", "type-index", "type-internal"],
18
- "value-builtin",
19
- "value-external",
20
- "value-internal",
21
- ["value-parent", "value-sibling", "value-index"],
22
- "value-side-effect",
23
- "unknown",
24
- ],
25
- },
26
- ],
27
- "perfectionist/sort-named-imports": ["error", baseConfig],
28
- "perfectionist/sort-interfaces": ["error", baseConfig],
29
- "perfectionist/sort-object-types": ["error", baseConfig],
30
- },
31
- });
32
- export const perfectionistJsxConfig = defineConfig({
33
- plugins: { perfectionist },
34
- rules: {
35
- "perfectionist/sort-jsx-props": [
36
- "error",
37
- {
38
- ...baseConfig,
39
- customGroups: [
40
- { elementNamePattern: "^key$", groupName: "key" },
41
- { elementNamePattern: "^ref$", groupName: "ref" },
42
- { elementNamePattern: "^on[A-Z]", groupName: "callback" },
43
- {
44
- elementNamePattern: "(?:^className$|ClassName$)",
45
- groupName: "className",
46
- },
47
- ],
48
- groups: ["key", "ref", "unknown", "callback", "className"],
49
- },
50
- ],
51
- },
52
- });
@@ -1,2 +0,0 @@
1
- export declare const regexpConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=regexp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../src/base/regexp.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAExB,CAAC"}
@@ -1,3 +0,0 @@
1
- import * as regexpPlugin from "eslint-plugin-regexp";
2
- import { defineConfig } from "eslint/config";
3
- export const regexpConfig = defineConfig(regexpPlugin.configs["flat/recommended"]);
@@ -1,2 +0,0 @@
1
- export declare const sonarjsConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=sonarjs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAKxB,CAAC"}
@@ -1,9 +0,0 @@
1
- import sonarjs from "eslint-plugin-sonarjs";
2
- import { defineConfig } from "eslint/config";
3
- const COGNITIVE_COMPLEXITY_THRESHOLD = 15;
4
- export const sonarjsConfig = defineConfig(sonarjs.configs.recommended, {
5
- rules: {
6
- "sonarjs/cognitive-complexity": ["warn", COGNITIVE_COMPLEXITY_THRESHOLD],
7
- "sonarjs/deprecation": "off",
8
- },
9
- });
@@ -1,2 +0,0 @@
1
- export declare const typescriptEslintConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=typescript-eslint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/typescript-eslint.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,sBAAsB,kCAwBlC,CAAC"}
@@ -1,50 +0,0 @@
1
- import { defineConfig } from "eslint/config";
2
- import globals from "globals";
3
- import typescriptEslint from "typescript-eslint";
4
- const sharedConfig = {
5
- extends: [
6
- typescriptEslint.configs.strictTypeChecked,
7
- typescriptEslint.configs.stylisticTypeChecked,
8
- ],
9
- parserOptions: {
10
- projectService: {
11
- allowDefaultProject: ["*.config.ts"],
12
- },
13
- },
14
- rules: {
15
- "@typescript-eslint/consistent-type-imports": "error",
16
- "@typescript-eslint/method-signature-style": ["error", "property"],
17
- "@typescript-eslint/no-shadow": "error",
18
- "@typescript-eslint/no-unused-vars": "off",
19
- "@typescript-eslint/prefer-readonly": "error",
20
- "@typescript-eslint/require-array-sort-compare": "error",
21
- "@typescript-eslint/switch-exhaustiveness-check": "error",
22
- "no-shadow": "off",
23
- "@typescript-eslint/consistent-type-exports": [
24
- "error",
25
- { fixMixedExportsWithInlineTypeSpecifier: true },
26
- ],
27
- },
28
- };
29
- export const typescriptEslintConfig = defineConfig({
30
- extends: sharedConfig.extends,
31
- files: ["**/*.{js,jsx,mjs,ts,tsx,mts}"],
32
- rules: sharedConfig.rules,
33
- languageOptions: {
34
- parserOptions: sharedConfig.parserOptions,
35
- },
36
- }, {
37
- extends: sharedConfig.extends,
38
- files: ["**/*.{cjs,cts}"],
39
- languageOptions: {
40
- parserOptions: sharedConfig.parserOptions,
41
- sourceType: "commonjs",
42
- globals: {
43
- ...globals.node,
44
- },
45
- },
46
- rules: {
47
- ...sharedConfig.rules,
48
- "@typescript-eslint/no-require-imports": "off",
49
- },
50
- });
@@ -1,2 +0,0 @@
1
- export declare const unicornXConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=unicorn-x.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unicorn-x.d.ts","sourceRoot":"","sources":["../../src/base/unicorn-x.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,kCAOzB,CAAC"}
@@ -1,10 +0,0 @@
1
- import unicornX from "eslint-plugin-unicorn-x";
2
- import { defineConfig } from "eslint/config";
3
- export const unicornXConfig = defineConfig(unicornX.configs.recommended, {
4
- rules: {
5
- "unicorn-x/better-regex": "error",
6
- "unicorn-x/prefer-import-meta-properties": "error",
7
- "unicorn-x/prevent-abbreviations": "off",
8
- "unicorn-x/no-array-for-each": "error",
9
- },
10
- });
@@ -1,2 +0,0 @@
1
- export declare const unusedImportsConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=unused-imports.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unused-imports.d.ts","sourceRoot":"","sources":["../../src/base/unused-imports.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,kCAQ9B,CAAC"}
@@ -1,11 +0,0 @@
1
- import unusedImports from "eslint-plugin-unused-imports";
2
- import { defineConfig } from "eslint/config";
3
- export const unusedImportsConfig = defineConfig({
4
- plugins: {
5
- "unused-imports": unusedImports,
6
- },
7
- rules: {
8
- "unused-imports/no-unused-imports": "error",
9
- "unused-imports/no-unused-vars": "off",
10
- },
11
- });
@@ -1,2 +0,0 @@
1
- export declare const vitestConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=vitest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../src/base/vitest.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAGvB,CAAC"}
@@ -1,6 +0,0 @@
1
- import vitest from "@vitest/eslint-plugin";
2
- import { defineConfig } from "eslint/config";
3
- export const vitestConfig = defineConfig({
4
- ...vitest.configs.all,
5
- files: ["**/tests/**", "**/*.test.ts", "**/*.test.tsx"],
6
- });
@@ -1,2 +0,0 @@
1
- export declare const node: import("eslint/config").Config[];
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,kCAAiC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { defineConfig } from "eslint/config";
2
- import { base } from "../base/index.js";
3
- import { nodeConfig } from "./n.js";
4
- export const node = defineConfig(base, nodeConfig);
package/dist/node/n.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const nodeConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=n.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"n.d.ts","sourceRoot":"","sources":["../../src/node/n.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,kCAQtB,CAAC"}
package/dist/node/n.js DELETED
@@ -1,8 +0,0 @@
1
- import nodePlugin from "eslint-plugin-n";
2
- import { defineConfig } from "eslint/config";
3
- export const nodeConfig = defineConfig(nodePlugin.configs["flat/recommended-module"], {
4
- rules: {
5
- "n/no-missing-import": "off",
6
- "n/no-unpublished-import": "off",
7
- },
8
- });
@@ -1,2 +0,0 @@
1
- export declare const eslintReactConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=eslint-react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint-react.d.ts","sourceRoot":"","sources":["../../src/react/eslint-react.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,kCAQ5B,CAAC"}
@@ -1,11 +0,0 @@
1
- import eslintReact from "@eslint-react/eslint-plugin";
2
- import { defineConfig } from "eslint/config";
3
- export const eslintReactConfig = defineConfig({
4
- ...eslintReact.configs["strict-type-checked"],
5
- files: ["**/*.{js,jsx,ts,tsx}"],
6
- rules: {
7
- ...eslintReact.configs["strict-type-checked"].rules,
8
- "@eslint-react/no-unstable-context-value": "off",
9
- "@eslint-react/prefer-namespace-import": "error",
10
- },
11
- });
@@ -1,2 +0,0 @@
1
- export declare const react: import("eslint/config").Config[];
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK,kCAQjB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { defineConfig } from "eslint/config";
2
- import { base } from "../base/index.js";
3
- import { perfectionistJsxConfig } from "../base/perfectionist.js";
4
- import { eslintReactConfig } from "./eslint-react.js";
5
- import { jsxA11yConfig } from "./jsx-a11y.js";
6
- import { reactHooksConfig } from "./react-hooks.js";
7
- import { reactRefreshConfig } from "./react-refresh.js";
8
- import { reactYouMightNotNeedAnEffectConfig } from "./react-you-might-not-need-an-effect.js";
9
- export const react = defineConfig(base, eslintReactConfig, jsxA11yConfig, reactHooksConfig, reactRefreshConfig, reactYouMightNotNeedAnEffectConfig, perfectionistJsxConfig);
@@ -1,2 +0,0 @@
1
- export declare const jsxA11yConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=jsx-a11y.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-a11y.d.ts","sourceRoot":"","sources":["../../src/react/jsx-a11y.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,kCAGxB,CAAC"}
@@ -1,6 +0,0 @@
1
- import jsxA11y from "eslint-plugin-jsx-a11y";
2
- import { defineConfig } from "eslint/config";
3
- export const jsxA11yConfig = defineConfig({
4
- ...jsxA11y.flatConfigs.strict,
5
- files: ["**/*.{js,jsx,ts,tsx}"],
6
- });
@@ -1,2 +0,0 @@
1
- export declare const reactHooksConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=react-hooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../src/react/react-hooks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,kCAG3B,CAAC"}
@@ -1,6 +0,0 @@
1
- import reactHooks from "eslint-plugin-react-hooks";
2
- import { defineConfig } from "eslint/config";
3
- export const reactHooksConfig = defineConfig({
4
- ...reactHooks.configs.flat["recommended-latest"],
5
- files: ["**/*.{js,jsx,ts,tsx}"],
6
- });
@@ -1,2 +0,0 @@
1
- export declare const reactRefreshConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=react-refresh.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-refresh.d.ts","sourceRoot":"","sources":["../../src/react/react-refresh.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,kCAG7B,CAAC"}
@@ -1,6 +0,0 @@
1
- import reactRefresh from "eslint-plugin-react-refresh";
2
- import { defineConfig } from "eslint/config";
3
- export const reactRefreshConfig = defineConfig({
4
- ...reactRefresh.configs.recommended,
5
- files: ["**/*.{js,jsx,ts,tsx}"],
6
- });
@@ -1,2 +0,0 @@
1
- export declare const reactYouMightNotNeedAnEffectConfig: import("eslint/config").Config[];
2
- //# sourceMappingURL=react-you-might-not-need-an-effect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-you-might-not-need-an-effect.d.ts","sourceRoot":"","sources":["../../src/react/react-you-might-not-need-an-effect.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kCAAkC,kCAG7C,CAAC"}
@@ -1,6 +0,0 @@
1
- import reactYouMightNotNeedAnEffect from "eslint-plugin-react-you-might-not-need-an-effect";
2
- import { defineConfig } from "eslint/config";
3
- export const reactYouMightNotNeedAnEffectConfig = defineConfig({
4
- ...reactYouMightNotNeedAnEffect.configs.recommended,
5
- files: ["**/*.{js,jsx,ts,tsx}"],
6
- });