@rhyster/eslint-config 1.1.0 → 1.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/eslint.config.d.ts +2 -1
- package/dist/eslint.config.d.ts.map +1 -1
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -12
- package/dist/index.d.mts +8 -12
- package/dist/index.d.ts +8 -12
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/src/airbnb/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +8 -12
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/typescript.d.ts +1 -0
- package/dist/src/typescript.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/airbnb/errors.ts +5 -1
- package/src/typescript.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/airbnb/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/airbnb/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAwN0B"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import nodePlugin from 'eslint-plugin-n';
|
|
1
2
|
import type { Linter } from 'eslint';
|
|
2
3
|
type Config = Linter.Config;
|
|
3
4
|
type Plugin = NonNullable<Config['plugins']>[string];
|
|
4
5
|
type Parser = NonNullable<Config['languageOptions']>['parser'];
|
|
5
6
|
export declare const core: [{
|
|
6
|
-
readonly rules: Readonly<
|
|
7
|
+
readonly rules: Readonly<Linter.RulesRecord>;
|
|
7
8
|
}, {
|
|
8
9
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
9
10
|
readonly files: ["**/*.ts"];
|
|
@@ -831,10 +832,11 @@ export declare const core: [{
|
|
|
831
832
|
'import-x/default': "off";
|
|
832
833
|
'import-x/no-named-as-default-member': "off";
|
|
833
834
|
'import-x/no-unresolved': "off";
|
|
835
|
+
'@typescript-eslint/strict-boolean-expressions': "error";
|
|
834
836
|
};
|
|
835
837
|
}];
|
|
836
838
|
export declare const node: [{
|
|
837
|
-
readonly rules: Readonly<
|
|
839
|
+
readonly rules: Readonly<Linter.RulesRecord>;
|
|
838
840
|
}, {
|
|
839
841
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
840
842
|
readonly files: ["**/*.ts"];
|
|
@@ -1662,6 +1664,7 @@ export declare const node: [{
|
|
|
1662
1664
|
'import-x/default': "off";
|
|
1663
1665
|
'import-x/no-named-as-default-member': "off";
|
|
1664
1666
|
'import-x/no-unresolved': "off";
|
|
1667
|
+
'@typescript-eslint/strict-boolean-expressions': "error";
|
|
1665
1668
|
};
|
|
1666
1669
|
}, {
|
|
1667
1670
|
readonly name: string;
|
|
@@ -1759,20 +1762,12 @@ export declare const node: [{
|
|
|
1759
1762
|
};
|
|
1760
1763
|
readonly plugins: {
|
|
1761
1764
|
readonly n: import("eslint").ESLint.Plugin & {
|
|
1762
|
-
configs:
|
|
1763
|
-
'recommended-module': import("eslint").ESLint.ConfigData;
|
|
1764
|
-
'recommended-script': import("eslint").ESLint.ConfigData;
|
|
1765
|
-
recommended: import("eslint").ESLint.ConfigData;
|
|
1766
|
-
'flat/recommended-module': import("eslint").Linter.FlatConfig;
|
|
1767
|
-
'flat/recommended-script': import("eslint").Linter.FlatConfig;
|
|
1768
|
-
'flat/recommended': import("eslint").Linter.FlatConfig;
|
|
1769
|
-
'flat/mixed-esm-and-cjs': import("eslint").Linter.FlatConfig[];
|
|
1770
|
-
};
|
|
1765
|
+
configs: nodePlugin.Configs;
|
|
1771
1766
|
};
|
|
1772
1767
|
};
|
|
1773
1768
|
}];
|
|
1774
1769
|
export declare const browser: [{
|
|
1775
|
-
readonly rules: Readonly<
|
|
1770
|
+
readonly rules: Readonly<Linter.RulesRecord>;
|
|
1776
1771
|
}, {
|
|
1777
1772
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
1778
1773
|
readonly files: ["**/*.ts"];
|
|
@@ -2600,6 +2595,7 @@ export declare const browser: [{
|
|
|
2600
2595
|
'import-x/default': "off";
|
|
2601
2596
|
'import-x/no-named-as-default-member': "off";
|
|
2602
2597
|
'import-x/no-unresolved': "off";
|
|
2598
|
+
'@typescript-eslint/strict-boolean-expressions': "error";
|
|
2603
2599
|
};
|
|
2604
2600
|
}, {
|
|
2605
2601
|
readonly languageOptions: {
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAczC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5B,KAAK,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACrD,KAAK,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAsD/D,eAAO,MAAM,IAAI;6BAxEF,OAAQ,WAAU;;;;;;;uCAuBU,MAAM;+BACd,MAAM;6BACC,MAAM;;;yBAGnB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFN,CAAC"}
|
package/dist/src/typescript.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBA0F0B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhyster/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
39
39
|
"@types/eslint__js": "^8.42.3",
|
|
40
|
-
"eslint": "^9.
|
|
41
|
-
"jiti": "^2.
|
|
40
|
+
"eslint": "^9.14.0",
|
|
41
|
+
"jiti": "^2.4.0",
|
|
42
42
|
"typescript": "^5.6.3",
|
|
43
43
|
"unbuild": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"eslint": ">= 9
|
|
46
|
+
"eslint": ">= 9"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@eslint/js": "^9.
|
|
50
|
-
"@stylistic/eslint-plugin": "^2.
|
|
49
|
+
"@eslint/js": "^9.14.0",
|
|
50
|
+
"@stylistic/eslint-plugin": "^2.10.1",
|
|
51
51
|
"confusing-browser-globals": "^1.0.11",
|
|
52
52
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
53
|
-
"eslint-plugin-import-x": "^4.
|
|
54
|
-
"eslint-plugin-n": "^17.
|
|
53
|
+
"eslint-plugin-import-x": "^4.4.0",
|
|
54
|
+
"eslint-plugin-n": "^17.12.0",
|
|
55
55
|
"globals": "^15.11.0",
|
|
56
|
-
"typescript-eslint": "^8.12.
|
|
56
|
+
"typescript-eslint": "^8.12.2"
|
|
57
57
|
},
|
|
58
58
|
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
|
|
59
59
|
}
|
package/src/airbnb/errors.ts
CHANGED
package/src/typescript.ts
CHANGED
|
@@ -86,5 +86,8 @@ export default {
|
|
|
86
86
|
'import-x/default': 'off',
|
|
87
87
|
'import-x/no-named-as-default-member': 'off',
|
|
88
88
|
'import-x/no-unresolved': 'off',
|
|
89
|
+
|
|
90
|
+
// https://typescript-eslint.io/rules/strict-boolean-expressions/
|
|
91
|
+
'@typescript-eslint/strict-boolean-expressions': 'error',
|
|
89
92
|
},
|
|
90
93
|
} satisfies Linter.Config;
|