eslint-config-nick2bad4u 1.0.2 → 1.0.3
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/README.md +8 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/preset.mjs +2 -2
package/README.md
CHANGED
|
@@ -36,6 +36,14 @@ export default [
|
|
|
36
36
|
];
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
If you prefer named imports, use `presets` (not `configs`):
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
import { presets } from "eslint-config-nick2bad4u";
|
|
43
|
+
|
|
44
|
+
export default [...presets.all];
|
|
45
|
+
```
|
|
46
|
+
|
|
39
47
|
Available presets:
|
|
40
48
|
|
|
41
49
|
- `nick2bad4u.configs.all` - full shared config, including packaged Typefest and Etc-Misc source rules.
|
package/index.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export declare const createConfig: (
|
|
|
96
96
|
) => Linter.Config[];
|
|
97
97
|
|
|
98
98
|
/** Shared flat config presets. */
|
|
99
|
-
export declare const
|
|
99
|
+
export declare const presets: Nick2Bad4UEslintConfigPresets;
|
|
100
100
|
|
|
101
101
|
declare const nickTwoBadFourU: {
|
|
102
102
|
readonly configs: Nick2Bad4UEslintConfigPresets;
|
package/package.json
CHANGED
package/preset.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
configs as sharedConfigs,
|
|
4
4
|
} from "./eslint.config.mjs";
|
|
5
5
|
|
|
6
|
-
export const
|
|
6
|
+
export const presets = Object.freeze({
|
|
7
7
|
all: sharedConfigs.all,
|
|
8
8
|
base: sharedConfigs.base,
|
|
9
9
|
recommended: sharedConfigs.recommended,
|
|
@@ -35,7 +35,7 @@ export const configs = Object.freeze({
|
|
|
35
35
|
export const createConfig = (options) => createSharedConfig(options);
|
|
36
36
|
|
|
37
37
|
const nickTwoBadFourU = Object.freeze({
|
|
38
|
-
configs,
|
|
38
|
+
configs: presets,
|
|
39
39
|
createConfig,
|
|
40
40
|
});
|
|
41
41
|
|