@rhyster/eslint-config 1.0.1 → 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 +14 -11
- package/dist/eslint.config.d.ts.map +1 -1
- package/dist/index.cjs +12 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -12
- package/dist/index.d.mts +14 -12
- package/dist/index.d.ts +14 -12
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/dist/src/index.d.ts +14 -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 +5 -5
- package/src/index.ts +7 -3
- package/src/typescript.ts +3 -0
package/dist/eslint.config.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
2
|
declare const _default: ({
|
|
3
|
-
|
|
3
|
+
files: string[];
|
|
4
|
+
name?: string;
|
|
5
|
+
ignores?: string[];
|
|
6
|
+
language?: string;
|
|
7
|
+
languageOptions?: Linter.LanguageOptions;
|
|
8
|
+
linterOptions?: Linter.LinterOptions;
|
|
9
|
+
processor?: string | Linter.Processor;
|
|
10
|
+
plugins?: Record<string, import("eslint").ESLint.Plugin>;
|
|
11
|
+
rules?: Partial<Linter.RulesRecord> | undefined;
|
|
12
|
+
settings?: Record<string, unknown>;
|
|
4
13
|
} | {
|
|
5
14
|
files: string[];
|
|
6
15
|
name: "@rhyster/eslint-config/airbnb/general";
|
|
@@ -30,6 +39,9 @@ declare const _default: ({
|
|
|
30
39
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
31
40
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
32
41
|
};
|
|
42
|
+
} | {
|
|
43
|
+
files: string[];
|
|
44
|
+
rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
33
45
|
} | {
|
|
34
46
|
files: string[];
|
|
35
47
|
name: string;
|
|
@@ -834,20 +846,11 @@ declare const _default: ({
|
|
|
834
846
|
'import-x/default': "off";
|
|
835
847
|
'import-x/no-named-as-default-member': "off";
|
|
836
848
|
'import-x/no-unresolved': "off";
|
|
849
|
+
'@typescript-eslint/strict-boolean-expressions': "error";
|
|
837
850
|
};
|
|
838
851
|
} | {
|
|
839
852
|
files: string[];
|
|
840
853
|
name: "@rhyster/eslint-config/files-ts";
|
|
841
|
-
} | {
|
|
842
|
-
files: string[];
|
|
843
|
-
rules: {
|
|
844
|
-
'@typescript-eslint/naming-convention': "off";
|
|
845
|
-
'import-x/no-unused-modules': ["error", {
|
|
846
|
-
ignoreExports: string[];
|
|
847
|
-
missingExports: boolean;
|
|
848
|
-
unusedExports: boolean;
|
|
849
|
-
}];
|
|
850
|
-
};
|
|
851
854
|
})[];
|
|
852
855
|
export default _default;
|
|
853
856
|
//# sourceMappingURL=eslint.config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../eslint.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../eslint.config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQrC,wBAuB4B"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const js = require('@eslint/js');
|
|
3
4
|
const stylistic = require('@stylistic/eslint-plugin');
|
|
4
5
|
const importx = require('eslint-plugin-import-x');
|
|
5
6
|
const nodePlugin = require('eslint-plugin-n');
|
|
6
7
|
const globals = require('globals');
|
|
7
|
-
const
|
|
8
|
+
const ts = require('typescript-eslint');
|
|
8
9
|
const confusingBrowserGlobals = require('confusing-browser-globals');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
11
12
|
|
|
13
|
+
const js__default = /*#__PURE__*/_interopDefaultCompat(js);
|
|
12
14
|
const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
|
|
13
15
|
const importx__default = /*#__PURE__*/_interopDefaultCompat(importx);
|
|
14
16
|
const nodePlugin__default = /*#__PURE__*/_interopDefaultCompat(nodePlugin);
|
|
15
17
|
const globals__default = /*#__PURE__*/_interopDefaultCompat(globals);
|
|
16
|
-
const
|
|
18
|
+
const ts__default = /*#__PURE__*/_interopDefaultCompat(ts);
|
|
17
19
|
const confusingBrowserGlobals__default = /*#__PURE__*/_interopDefaultCompat(confusingBrowserGlobals);
|
|
18
20
|
|
|
19
21
|
const bestPractices = {
|
|
@@ -1813,19 +1815,21 @@ const typescript = {
|
|
|
1813
1815
|
"import-x/namespace": "off",
|
|
1814
1816
|
"import-x/default": "off",
|
|
1815
1817
|
"import-x/no-named-as-default-member": "off",
|
|
1816
|
-
"import-x/no-unresolved": "off"
|
|
1818
|
+
"import-x/no-unresolved": "off",
|
|
1819
|
+
// https://typescript-eslint.io/rules/strict-boolean-expressions/
|
|
1820
|
+
"@typescript-eslint/strict-boolean-expressions": "error"
|
|
1817
1821
|
}
|
|
1818
1822
|
};
|
|
1819
1823
|
|
|
1820
1824
|
const general = {
|
|
1821
1825
|
name: "@rhyster/eslint-config/airbnb/general",
|
|
1822
1826
|
plugins: {
|
|
1823
|
-
"@typescript-eslint":
|
|
1827
|
+
"@typescript-eslint": ts__default.plugin,
|
|
1824
1828
|
"@stylistic": stylistic__default,
|
|
1825
1829
|
"import-x": importx__default
|
|
1826
1830
|
},
|
|
1827
1831
|
languageOptions: {
|
|
1828
|
-
parser:
|
|
1832
|
+
parser: ts__default.parser,
|
|
1829
1833
|
parserOptions: {
|
|
1830
1834
|
projectService: true
|
|
1831
1835
|
}
|
|
@@ -1870,11 +1874,14 @@ const general = {
|
|
|
1870
1874
|
}
|
|
1871
1875
|
};
|
|
1872
1876
|
const core = [
|
|
1877
|
+
js__default.configs.recommended,
|
|
1873
1878
|
{
|
|
1874
1879
|
name: "@rhyster/eslint-config/files-ts",
|
|
1875
1880
|
files: ["**/*.ts"]
|
|
1876
1881
|
},
|
|
1877
1882
|
general,
|
|
1883
|
+
...ts__default.configs.strictTypeChecked,
|
|
1884
|
+
...ts__default.configs.stylisticTypeChecked,
|
|
1878
1885
|
bestPractices,
|
|
1879
1886
|
errors,
|
|
1880
1887
|
style,
|