@rhyster/eslint-config 1.1.0 → 1.2.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 +1 -0
- package/dist/eslint.config.d.ts.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -9
- package/dist/index.d.mts +5 -9
- package/dist/index.d.ts +5 -9
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/src/index.d.ts +5 -9
- 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 +5 -5
- package/src/typescript.ts +3 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
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];
|
|
@@ -831,6 +832,7 @@ 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: [{
|
|
@@ -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,15 +1762,7 @@ 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
|
}];
|
|
@@ -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,I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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.2.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@eslint/js": "^9.13.0",
|
|
50
|
-
"@stylistic/eslint-plugin": "^2.
|
|
50
|
+
"@stylistic/eslint-plugin": "^2.10.0",
|
|
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/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;
|