@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/index.d.cts
CHANGED
|
@@ -5,6 +5,8 @@ type Config = Linter.Config;
|
|
|
5
5
|
type Plugin = NonNullable<Config['plugins']>[string];
|
|
6
6
|
type Parser = NonNullable<Config['languageOptions']>['parser'];
|
|
7
7
|
declare const core: [{
|
|
8
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
9
|
+
}, {
|
|
8
10
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
9
11
|
readonly files: ["**/*.ts"];
|
|
10
12
|
}, {
|
|
@@ -35,7 +37,7 @@ declare const core: [{
|
|
|
35
37
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
36
38
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
37
39
|
};
|
|
38
|
-
}, {
|
|
40
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
39
41
|
name: string;
|
|
40
42
|
rules: {
|
|
41
43
|
'accessor-pairs': "off";
|
|
@@ -834,6 +836,8 @@ declare const core: [{
|
|
|
834
836
|
};
|
|
835
837
|
}];
|
|
836
838
|
declare const node: [{
|
|
839
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
840
|
+
}, {
|
|
837
841
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
838
842
|
readonly files: ["**/*.ts"];
|
|
839
843
|
}, {
|
|
@@ -864,7 +868,7 @@ declare const node: [{
|
|
|
864
868
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
865
869
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
866
870
|
};
|
|
867
|
-
}, {
|
|
871
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
868
872
|
name: string;
|
|
869
873
|
rules: {
|
|
870
874
|
'accessor-pairs': "off";
|
|
@@ -1770,6 +1774,8 @@ declare const node: [{
|
|
|
1770
1774
|
};
|
|
1771
1775
|
}];
|
|
1772
1776
|
declare const browser: [{
|
|
1777
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
1778
|
+
}, {
|
|
1773
1779
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
1774
1780
|
readonly files: ["**/*.ts"];
|
|
1775
1781
|
}, {
|
|
@@ -1800,7 +1806,7 @@ declare const browser: [{
|
|
|
1800
1806
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
1801
1807
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
1802
1808
|
};
|
|
1803
|
-
}, {
|
|
1809
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
1804
1810
|
name: string;
|
|
1805
1811
|
rules: {
|
|
1806
1812
|
'accessor-pairs': "off";
|
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,8 @@ type Config = Linter.Config;
|
|
|
5
5
|
type Plugin = NonNullable<Config['plugins']>[string];
|
|
6
6
|
type Parser = NonNullable<Config['languageOptions']>['parser'];
|
|
7
7
|
declare const core: [{
|
|
8
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
9
|
+
}, {
|
|
8
10
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
9
11
|
readonly files: ["**/*.ts"];
|
|
10
12
|
}, {
|
|
@@ -35,7 +37,7 @@ declare const core: [{
|
|
|
35
37
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
36
38
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
37
39
|
};
|
|
38
|
-
}, {
|
|
40
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
39
41
|
name: string;
|
|
40
42
|
rules: {
|
|
41
43
|
'accessor-pairs': "off";
|
|
@@ -834,6 +836,8 @@ declare const core: [{
|
|
|
834
836
|
};
|
|
835
837
|
}];
|
|
836
838
|
declare const node: [{
|
|
839
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
840
|
+
}, {
|
|
837
841
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
838
842
|
readonly files: ["**/*.ts"];
|
|
839
843
|
}, {
|
|
@@ -864,7 +868,7 @@ declare const node: [{
|
|
|
864
868
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
865
869
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
866
870
|
};
|
|
867
|
-
}, {
|
|
871
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
868
872
|
name: string;
|
|
869
873
|
rules: {
|
|
870
874
|
'accessor-pairs': "off";
|
|
@@ -1770,6 +1774,8 @@ declare const node: [{
|
|
|
1770
1774
|
};
|
|
1771
1775
|
}];
|
|
1772
1776
|
declare const browser: [{
|
|
1777
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
1778
|
+
}, {
|
|
1773
1779
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
1774
1780
|
readonly files: ["**/*.ts"];
|
|
1775
1781
|
}, {
|
|
@@ -1800,7 +1806,7 @@ declare const browser: [{
|
|
|
1800
1806
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
1801
1807
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
1802
1808
|
};
|
|
1803
|
-
}, {
|
|
1809
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
1804
1810
|
name: string;
|
|
1805
1811
|
rules: {
|
|
1806
1812
|
'accessor-pairs': "off";
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ type Config = Linter.Config;
|
|
|
5
5
|
type Plugin = NonNullable<Config['plugins']>[string];
|
|
6
6
|
type Parser = NonNullable<Config['languageOptions']>['parser'];
|
|
7
7
|
declare const core: [{
|
|
8
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
9
|
+
}, {
|
|
8
10
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
9
11
|
readonly files: ["**/*.ts"];
|
|
10
12
|
}, {
|
|
@@ -35,7 +37,7 @@ declare const core: [{
|
|
|
35
37
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
36
38
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
37
39
|
};
|
|
38
|
-
}, {
|
|
40
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
39
41
|
name: string;
|
|
40
42
|
rules: {
|
|
41
43
|
'accessor-pairs': "off";
|
|
@@ -834,6 +836,8 @@ declare const core: [{
|
|
|
834
836
|
};
|
|
835
837
|
}];
|
|
836
838
|
declare const node: [{
|
|
839
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
840
|
+
}, {
|
|
837
841
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
838
842
|
readonly files: ["**/*.ts"];
|
|
839
843
|
}, {
|
|
@@ -864,7 +868,7 @@ declare const node: [{
|
|
|
864
868
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
865
869
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
866
870
|
};
|
|
867
|
-
}, {
|
|
871
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
868
872
|
name: string;
|
|
869
873
|
rules: {
|
|
870
874
|
'accessor-pairs': "off";
|
|
@@ -1770,6 +1774,8 @@ declare const node: [{
|
|
|
1770
1774
|
};
|
|
1771
1775
|
}];
|
|
1772
1776
|
declare const browser: [{
|
|
1777
|
+
readonly rules: Readonly<eslint.Linter.RulesRecord>;
|
|
1778
|
+
}, {
|
|
1773
1779
|
readonly name: "@rhyster/eslint-config/files-ts";
|
|
1774
1780
|
readonly files: ["**/*.ts"];
|
|
1775
1781
|
}, {
|
|
@@ -1800,7 +1806,7 @@ declare const browser: [{
|
|
|
1800
1806
|
readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
|
|
1801
1807
|
readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
|
|
1802
1808
|
};
|
|
1803
|
-
}, {
|
|
1809
|
+
}, ...Linter.Config<Linter.RulesRecord>[], {
|
|
1804
1810
|
name: string;
|
|
1805
1811
|
rules: {
|
|
1806
1812
|
'accessor-pairs': "off";
|
package/dist/index.mjs
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
|
import confusingBrowserGlobals from 'confusing-browser-globals';
|
|
7
8
|
|
|
8
9
|
const bestPractices = {
|
|
@@ -1809,12 +1810,12 @@ const typescript = {
|
|
|
1809
1810
|
const general = {
|
|
1810
1811
|
name: "@rhyster/eslint-config/airbnb/general",
|
|
1811
1812
|
plugins: {
|
|
1812
|
-
"@typescript-eslint":
|
|
1813
|
+
"@typescript-eslint": ts.plugin,
|
|
1813
1814
|
"@stylistic": stylistic,
|
|
1814
1815
|
"import-x": importx
|
|
1815
1816
|
},
|
|
1816
1817
|
languageOptions: {
|
|
1817
|
-
parser:
|
|
1818
|
+
parser: ts.parser,
|
|
1818
1819
|
parserOptions: {
|
|
1819
1820
|
projectService: true
|
|
1820
1821
|
}
|
|
@@ -1859,11 +1860,14 @@ const general = {
|
|
|
1859
1860
|
}
|
|
1860
1861
|
};
|
|
1861
1862
|
const core = [
|
|
1863
|
+
js.configs.recommended,
|
|
1862
1864
|
{
|
|
1863
1865
|
name: "@rhyster/eslint-config/files-ts",
|
|
1864
1866
|
files: ["**/*.ts"]
|
|
1865
1867
|
},
|
|
1866
1868
|
general,
|
|
1869
|
+
...ts.configs.strictTypeChecked,
|
|
1870
|
+
...ts.configs.stylisticTypeChecked,
|
|
1867
1871
|
bestPractices,
|
|
1868
1872
|
errors,
|
|
1869
1873
|
style,
|