@smartive/eslint-config 6.3.0 → 6.3.2
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 +1 -1
- package/dist/cjs/index.js +3 -4
- package/dist/esm/index.js +3 -4
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -122,17 +122,16 @@ const flatConfigNext = () => new import_eslintrc.FlatCompat().extends("next").ma
|
|
|
122
122
|
}
|
|
123
123
|
return config;
|
|
124
124
|
});
|
|
125
|
-
const flatConfigReact = (
|
|
125
|
+
const flatConfigReact = (includeNextJsConfig = false) => import_typescript_eslint.default.config(
|
|
126
126
|
flatConfigTypescript,
|
|
127
127
|
import_eslint_plugin_react.default.configs.flat.recommended,
|
|
128
128
|
import_eslint_plugin_react.default.configs.flat["jsx-runtime"],
|
|
129
|
-
...
|
|
129
|
+
...includeNextJsConfig ? flatConfigNext() : [],
|
|
130
130
|
{ rules: reactRules }
|
|
131
131
|
);
|
|
132
132
|
const configs = {
|
|
133
133
|
typescript: flatConfigTypescript,
|
|
134
|
-
react: flatConfigReact()
|
|
135
|
-
next: flatConfigReact(true)
|
|
134
|
+
react: flatConfigReact()
|
|
136
135
|
};
|
|
137
136
|
const generateLegacyConfig = (react) => ({
|
|
138
137
|
rules: rules(react),
|
package/dist/esm/index.js
CHANGED
|
@@ -88,17 +88,16 @@ const flatConfigNext = () => new FlatCompat().extends("next").map((config) => {
|
|
|
88
88
|
}
|
|
89
89
|
return config;
|
|
90
90
|
});
|
|
91
|
-
const flatConfigReact = (
|
|
91
|
+
const flatConfigReact = (includeNextJsConfig = false) => tsEslint.config(
|
|
92
92
|
flatConfigTypescript,
|
|
93
93
|
reactPlugin.configs.flat.recommended,
|
|
94
94
|
reactPlugin.configs.flat["jsx-runtime"],
|
|
95
|
-
...
|
|
95
|
+
...includeNextJsConfig ? flatConfigNext() : [],
|
|
96
96
|
{ rules: reactRules }
|
|
97
97
|
);
|
|
98
98
|
const configs = {
|
|
99
99
|
typescript: flatConfigTypescript,
|
|
100
|
-
react: flatConfigReact()
|
|
101
|
-
next: flatConfigReact(true)
|
|
100
|
+
react: flatConfigReact()
|
|
102
101
|
};
|
|
103
102
|
const generateLegacyConfig = (react) => ({
|
|
104
103
|
rules: rules(react),
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,5 @@ import type { Linter } from 'eslint';
|
|
|
2
2
|
export declare const configs: {
|
|
3
3
|
typescript: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.ConfigArray;
|
|
4
4
|
react: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.ConfigArray;
|
|
5
|
-
next: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.ConfigArray;
|
|
6
5
|
};
|
|
7
6
|
export declare const generateLegacyConfig: (react: boolean) => Linter.LegacyConfig;
|