@danielwaltz/eslint-config 0.0.4 → 0.0.5
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +47 -1
- package/dist/index.d.ts +47 -1
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v0.0.5
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.0.4...v0.0.5)
|
|
7
|
+
|
|
8
|
+
### 🚀 Enhancements
|
|
9
|
+
|
|
10
|
+
- Export individual config collections ([585dfa1](https://github.com/danielwaltz/eslint-config/commit/585dfa1))
|
|
11
|
+
|
|
12
|
+
### ❤️ Contributors
|
|
13
|
+
|
|
14
|
+
- Daniel Waltz ([@danielwaltz](http://github.com/danielwaltz))
|
|
15
|
+
|
|
4
16
|
## v0.0.4
|
|
5
17
|
|
|
6
18
|
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.0.3...v0.0.4)
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,55 @@
|
|
|
1
1
|
import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
|
|
2
2
|
import { ResolvableFlatConfig, FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
3
3
|
import * as eslint from 'eslint';
|
|
4
|
+
import { Linter } from 'eslint';
|
|
5
|
+
|
|
6
|
+
declare function formattingConfigs(): [eslint.Linter.FlatConfig, {
|
|
7
|
+
readonly rules: {
|
|
8
|
+
readonly "prettier/prettier": "warn";
|
|
9
|
+
};
|
|
10
|
+
readonly name: "danielwaltz/formatting/customized";
|
|
11
|
+
}];
|
|
12
|
+
|
|
13
|
+
declare function globalConfigs(): [{
|
|
14
|
+
readonly ignores: ["**/.next/**", "**/.nuxt/**", "**/build/**", "**/coverage/**", "**/dist/**", "**/generated/**", "**/node_modules/**", "**/out/**"];
|
|
15
|
+
readonly name: "danielwaltz/global/ignores";
|
|
16
|
+
}];
|
|
17
|
+
|
|
18
|
+
declare function importConfigs(): [Linter.Config<Linter.RulesRecord>, {
|
|
19
|
+
settings: {
|
|
20
|
+
"import-x/extensions": readonly [".ts", ".tsx", ".cts", ".mts", ".js", ".jsx", ".cjs", ".mjs"];
|
|
21
|
+
"import-x/external-module-folders": string[];
|
|
22
|
+
"import-x/parsers": {
|
|
23
|
+
"@typescript-eslint/parser": (".ts" | ".tsx" | ".cts" | ".mts")[];
|
|
24
|
+
};
|
|
25
|
+
"import-x/resolver": {
|
|
26
|
+
typescript: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
rules: {
|
|
30
|
+
"import-x/named": "off";
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
readonly files: ["**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,d.ts,vue}"];
|
|
34
|
+
readonly rules: {
|
|
35
|
+
readonly "import-x/no-unresolved": ["error", {
|
|
36
|
+
readonly ignore: readonly ["\\?*$"];
|
|
37
|
+
}];
|
|
38
|
+
readonly "import-x/order": ["warn", {
|
|
39
|
+
readonly groups: readonly ["builtin", "external", "internal", "parent", "sibling", "index"];
|
|
40
|
+
readonly alphabetize: {
|
|
41
|
+
readonly order: "asc";
|
|
42
|
+
readonly caseInsensitive: false;
|
|
43
|
+
};
|
|
44
|
+
}];
|
|
45
|
+
};
|
|
46
|
+
readonly name: "danielwaltz/import/customized";
|
|
47
|
+
}];
|
|
48
|
+
|
|
49
|
+
declare function typescriptConfigs(): ResolvableFlatConfig;
|
|
4
50
|
|
|
5
51
|
declare function defineFlatConfigs(...configs: ResolvableFlatConfig[]): FlatConfigComposer;
|
|
6
52
|
|
|
7
53
|
declare function danielwaltz(...userConfigs: ResolvableFlatConfig[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord>, never>;
|
|
8
54
|
|
|
9
|
-
export { danielwaltz, defineFlatConfigs };
|
|
55
|
+
export { danielwaltz, defineFlatConfigs, formattingConfigs, globalConfigs, importConfigs, typescriptConfigs };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,55 @@
|
|
|
1
1
|
import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
|
|
2
2
|
import { ResolvableFlatConfig, FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
3
3
|
import * as eslint from 'eslint';
|
|
4
|
+
import { Linter } from 'eslint';
|
|
5
|
+
|
|
6
|
+
declare function formattingConfigs(): [eslint.Linter.FlatConfig, {
|
|
7
|
+
readonly rules: {
|
|
8
|
+
readonly "prettier/prettier": "warn";
|
|
9
|
+
};
|
|
10
|
+
readonly name: "danielwaltz/formatting/customized";
|
|
11
|
+
}];
|
|
12
|
+
|
|
13
|
+
declare function globalConfigs(): [{
|
|
14
|
+
readonly ignores: ["**/.next/**", "**/.nuxt/**", "**/build/**", "**/coverage/**", "**/dist/**", "**/generated/**", "**/node_modules/**", "**/out/**"];
|
|
15
|
+
readonly name: "danielwaltz/global/ignores";
|
|
16
|
+
}];
|
|
17
|
+
|
|
18
|
+
declare function importConfigs(): [Linter.Config<Linter.RulesRecord>, {
|
|
19
|
+
settings: {
|
|
20
|
+
"import-x/extensions": readonly [".ts", ".tsx", ".cts", ".mts", ".js", ".jsx", ".cjs", ".mjs"];
|
|
21
|
+
"import-x/external-module-folders": string[];
|
|
22
|
+
"import-x/parsers": {
|
|
23
|
+
"@typescript-eslint/parser": (".ts" | ".tsx" | ".cts" | ".mts")[];
|
|
24
|
+
};
|
|
25
|
+
"import-x/resolver": {
|
|
26
|
+
typescript: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
rules: {
|
|
30
|
+
"import-x/named": "off";
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
readonly files: ["**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,d.ts,vue}"];
|
|
34
|
+
readonly rules: {
|
|
35
|
+
readonly "import-x/no-unresolved": ["error", {
|
|
36
|
+
readonly ignore: readonly ["\\?*$"];
|
|
37
|
+
}];
|
|
38
|
+
readonly "import-x/order": ["warn", {
|
|
39
|
+
readonly groups: readonly ["builtin", "external", "internal", "parent", "sibling", "index"];
|
|
40
|
+
readonly alphabetize: {
|
|
41
|
+
readonly order: "asc";
|
|
42
|
+
readonly caseInsensitive: false;
|
|
43
|
+
};
|
|
44
|
+
}];
|
|
45
|
+
};
|
|
46
|
+
readonly name: "danielwaltz/import/customized";
|
|
47
|
+
}];
|
|
48
|
+
|
|
49
|
+
declare function typescriptConfigs(): ResolvableFlatConfig;
|
|
4
50
|
|
|
5
51
|
declare function defineFlatConfigs(...configs: ResolvableFlatConfig[]): FlatConfigComposer;
|
|
6
52
|
|
|
7
53
|
declare function danielwaltz(...userConfigs: ResolvableFlatConfig[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord>, never>;
|
|
8
54
|
|
|
9
|
-
export { danielwaltz, defineFlatConfigs };
|
|
55
|
+
export { danielwaltz, defineFlatConfigs, formattingConfigs, globalConfigs, importConfigs, typescriptConfigs };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import prettier from 'eslint-plugin-prettier/recommended';
|
|
2
|
-
import
|
|
2
|
+
import importX from 'eslint-plugin-import-x';
|
|
3
3
|
import eslint from '@eslint/js';
|
|
4
4
|
import tseslint from 'typescript-eslint';
|
|
5
5
|
import { composer } from 'eslint-flat-config-utils';
|
|
@@ -34,8 +34,8 @@ function globalConfigs() {
|
|
|
34
34
|
|
|
35
35
|
function importConfigs() {
|
|
36
36
|
return [
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
importX.flatConfigs.recommended,
|
|
38
|
+
importX.flatConfigs.typescript,
|
|
39
39
|
{
|
|
40
40
|
files: ["**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,d.ts,vue}"],
|
|
41
41
|
rules: {
|
|
@@ -106,4 +106,4 @@ function danielwaltz(...userConfigs) {
|
|
|
106
106
|
return composer;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export { danielwaltz, defineFlatConfigs };
|
|
109
|
+
export { danielwaltz, defineFlatConfigs, formattingConfigs, globalConfigs, importConfigs, typescriptConfigs };
|