@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.
- package/dist/src/base/sonarjs.d.ts.map +1 -1
- package/dist/src/base/sonarjs.js +17 -2
- package/dist/src/base/unicorn-x.d.ts.map +1 -1
- package/dist/src/base/unicorn-x.js +0 -1
- package/package.json +4 -4
- package/src/base/sonarjs.ts +17 -2
- package/src/base/unicorn-x.ts +0 -1
- package/dist/base/eslint.d.ts +0 -2
- package/dist/base/eslint.d.ts.map +0 -1
- package/dist/base/eslint.js +0 -22
- package/dist/base/import-lite.d.ts +0 -2
- package/dist/base/import-lite.d.ts.map +0 -1
- package/dist/base/import-lite.js +0 -8
- package/dist/base/index.d.ts +0 -2
- package/dist/base/index.d.ts.map +0 -1
- package/dist/base/index.js +0 -13
- package/dist/base/perfectionist.d.ts +0 -3
- package/dist/base/perfectionist.d.ts.map +0 -1
- package/dist/base/perfectionist.js +0 -52
- package/dist/base/regexp.d.ts +0 -2
- package/dist/base/regexp.d.ts.map +0 -1
- package/dist/base/regexp.js +0 -3
- package/dist/base/sonarjs.d.ts +0 -2
- package/dist/base/sonarjs.d.ts.map +0 -1
- package/dist/base/sonarjs.js +0 -9
- package/dist/base/typescript-eslint.d.ts +0 -2
- package/dist/base/typescript-eslint.d.ts.map +0 -1
- package/dist/base/typescript-eslint.js +0 -50
- package/dist/base/unicorn-x.d.ts +0 -2
- package/dist/base/unicorn-x.d.ts.map +0 -1
- package/dist/base/unicorn-x.js +0 -10
- package/dist/base/unused-imports.d.ts +0 -2
- package/dist/base/unused-imports.d.ts.map +0 -1
- package/dist/base/unused-imports.js +0 -11
- package/dist/base/vitest.d.ts +0 -2
- package/dist/base/vitest.d.ts.map +0 -1
- package/dist/base/vitest.js +0 -6
- package/dist/node/index.d.ts +0 -2
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/index.js +0 -4
- package/dist/node/n.d.ts +0 -2
- package/dist/node/n.d.ts.map +0 -1
- package/dist/node/n.js +0 -8
- package/dist/react/eslint-react.d.ts +0 -2
- package/dist/react/eslint-react.d.ts.map +0 -1
- package/dist/react/eslint-react.js +0 -11
- package/dist/react/index.d.ts +0 -2
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js +0 -9
- package/dist/react/jsx-a11y.d.ts +0 -2
- package/dist/react/jsx-a11y.d.ts.map +0 -1
- package/dist/react/jsx-a11y.js +0 -6
- package/dist/react/react-hooks.d.ts +0 -2
- package/dist/react/react-hooks.d.ts.map +0 -1
- package/dist/react/react-hooks.js +0 -6
- package/dist/react/react-refresh.d.ts +0 -2
- package/dist/react/react-refresh.d.ts.map +0 -1
- package/dist/react/react-refresh.js +0 -6
- package/dist/react/react-you-might-not-need-an-effect.d.ts +0 -2
- package/dist/react/react-you-might-not-need-an-effect.d.ts.map +0 -1
- 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,
|
|
1
|
+
{"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAoBxB,CAAC"}
|
package/dist/src/base/sonarjs.js
CHANGED
|
@@ -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(
|
|
4
|
+
export const sonarjsConfig = defineConfig({
|
|
5
|
+
plugins: { sonarjs },
|
|
5
6
|
rules: {
|
|
6
7
|
"sonarjs/cognitive-complexity": ["warn", COGNITIVE_COMPLEXITY_THRESHOLD],
|
|
7
|
-
"sonarjs/
|
|
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,
|
|
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.
|
|
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"
|
package/src/base/sonarjs.ts
CHANGED
|
@@ -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(
|
|
6
|
+
export const sonarjsConfig = defineConfig({
|
|
7
|
+
plugins: { sonarjs },
|
|
7
8
|
rules: {
|
|
8
9
|
"sonarjs/cognitive-complexity": ["warn", COGNITIVE_COMPLEXITY_THRESHOLD],
|
|
9
|
-
"sonarjs/
|
|
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
|
});
|
package/src/base/unicorn-x.ts
CHANGED
|
@@ -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",
|
package/dist/base/eslint.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/base/eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAmBvB,CAAC"}
|
package/dist/base/eslint.js
DELETED
|
@@ -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 +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"}
|
package/dist/base/import-lite.js
DELETED
|
@@ -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
|
-
});
|
package/dist/base/index.d.ts
DELETED
package/dist/base/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI,kCAchB,CAAC"}
|
package/dist/base/index.js
DELETED
|
@@ -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 +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
|
-
});
|
package/dist/base/regexp.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../src/base/regexp.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAExB,CAAC"}
|
package/dist/base/regexp.js
DELETED
package/dist/base/sonarjs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAKxB,CAAC"}
|
package/dist/base/sonarjs.js
DELETED
|
@@ -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 +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
|
-
});
|
package/dist/base/unicorn-x.d.ts
DELETED
|
@@ -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"}
|
package/dist/base/unicorn-x.js
DELETED
|
@@ -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 +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
|
-
});
|
package/dist/base/vitest.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../src/base/vitest.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAGvB,CAAC"}
|
package/dist/base/vitest.js
DELETED
package/dist/node/index.d.ts
DELETED
package/dist/node/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,kCAAiC,CAAC"}
|
package/dist/node/index.js
DELETED
package/dist/node/n.d.ts
DELETED
package/dist/node/n.d.ts.map
DELETED
|
@@ -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 +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
|
-
});
|
package/dist/react/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK,kCAQjB,CAAC"}
|
package/dist/react/index.js
DELETED
|
@@ -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);
|
package/dist/react/jsx-a11y.d.ts
DELETED
|
@@ -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"}
|
package/dist/react/jsx-a11y.js
DELETED
|
@@ -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 +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 +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
|
-
});
|