@rhyster/eslint-config 1.0.1 → 1.1.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 +13 -11
- package/dist/eslint.config.d.ts.map +1 -1
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/dist/src/index.d.ts +9 -3
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ type Config = Linter.Config;
|
|
|
3
3
|
type Plugin = NonNullable<Config['plugins']>[string];
|
|
4
4
|
type Parser = NonNullable<Config['languageOptions']>['parser'];
|
|
5
5
|
export declare const core: [{
|
|
6
|
+
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
7
|
+
}, {
|
|
6
8
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
7
9
|
readonly files: ["**/*.ts"];
|
|
8
10
|
}, {
|
|
@@ -33,7 +35,7 @@ export declare const core: [{
|
|
|
33
35
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
34
36
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
35
37
|
};
|
|
36
|
-
}, {
|
|
38
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
37
39
|
name: string;
|
|
38
40
|
rules: {
|
|
39
41
|
'accessor-pairs': "off";
|
|
@@ -832,6 +834,8 @@ export declare const core: [{
|
|
|
832
834
|
};
|
|
833
835
|
}];
|
|
834
836
|
export declare const node: [{
|
|
837
|
+
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
838
|
+
}, {
|
|
835
839
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
836
840
|
readonly files: ["**/*.ts"];
|
|
837
841
|
}, {
|
|
@@ -862,7 +866,7 @@ export declare const node: [{
|
|
|
862
866
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
863
867
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
864
868
|
};
|
|
865
|
-
}, {
|
|
869
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
866
870
|
name: string;
|
|
867
871
|
rules: {
|
|
868
872
|
'accessor-pairs': "off";
|
|
@@ -1768,6 +1772,8 @@ export declare const node: [{
|
|
|
1768
1772
|
};
|
|
1769
1773
|
}];
|
|
1770
1774
|
export declare const browser: [{
|
|
1775
|
+
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
1776
|
+
}, {
|
|
1771
1777
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
1772
1778
|
readonly files: ["**/*.ts"];
|
|
1773
1779
|
}, {
|
|
@@ -1798,7 +1804,7 @@ export declare const browser: [{
|
|
|
1798
1804
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
1799
1805
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
1800
1806
|
};
|
|
1801
|
-
}, {
|
|
1807
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
1802
1808
|
name: string;
|
|
1803
1809
|
rules: {
|
|
1804
1810
|
'accessor-pairs': "off";
|
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":"AAiBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,MAAM,GAAG,MAAM,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFN,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
1
2
|
import stylistic from '@stylistic/eslint-plugin';
|
|
2
3
|
import importx from 'eslint-plugin-import-x';
|
|
3
4
|
import nodePlugin from 'eslint-plugin-n';
|
|
4
5
|
import globals from 'globals';
|
|
5
|
-
import
|
|
6
|
+
import ts from 'typescript-eslint';
|
|
6
7
|
|
|
7
8
|
import bestPractices from './airbnb/best-practices.ts';
|
|
8
9
|
import errors from './airbnb/errors.ts';
|
|
@@ -23,12 +24,12 @@ type Parser = NonNullable<Config['languageOptions']>['parser'];
|
|
|
23
24
|
const general = {
|
|
24
25
|
name: '@rhyster/eslint-config/airbnb/general',
|
|
25
26
|
plugins: {
|
|
26
|
-
'@typescript-eslint':
|
|
27
|
+
'@typescript-eslint': ts.plugin as Plugin,
|
|
27
28
|
'@stylistic': stylistic as Plugin,
|
|
28
29
|
'import-x': importx as unknown as Plugin,
|
|
29
30
|
},
|
|
30
31
|
languageOptions: {
|
|
31
|
-
parser:
|
|
32
|
+
parser: ts.parser as Parser,
|
|
32
33
|
parserOptions: {
|
|
33
34
|
projectService: true,
|
|
34
35
|
},
|
|
@@ -73,11 +74,14 @@ const general = {
|
|
|
73
74
|
} as const satisfies Config;
|
|
74
75
|
|
|
75
76
|
export const core = [
|
|
77
|
+
js.configs.recommended,
|
|
76
78
|
{
|
|
77
79
|
name: '@rhyster/eslint-config/files-ts',
|
|
78
80
|
files: ['**/*.ts'],
|
|
79
81
|
},
|
|
80
82
|
general,
|
|
83
|
+
...ts.configs.strictTypeChecked as unknown as Linter.Config[],
|
|
84
|
+
...ts.configs.stylisticTypeChecked as unknown as Linter.Config[],
|
|
81
85
|
bestPractices,
|
|
82
86
|
errors,
|
|
83
87
|
style,
|