@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 CHANGED
@@ -24,7 +24,7 @@ export default configs.typescript;
24
24
  export default configs.react;
25
25
 
26
26
  // .. or Next.js applications
27
- export default configs.next;
27
+ export default configs.nextjs;
28
28
  ```
29
29
 
30
30
  ### Legacy Config (`.eslintrc`)
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 = (includeNextConfig = false) => import_typescript_eslint.default.config(
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
- ...includeNextConfig ? flatConfigNext() : [],
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 = (includeNextConfig = false) => tsEslint.config(
91
+ const flatConfigReact = (includeNextJsConfig = false) => tsEslint.config(
92
92
  flatConfigTypescript,
93
93
  reactPlugin.configs.flat.recommended,
94
94
  reactPlugin.configs.flat["jsx-runtime"],
95
- ...includeNextConfig ? flatConfigNext() : [],
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartive/eslint-config",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
4
4
  "description": "ESLint configuration by smartive",
5
5
  "files": [
6
6
  "README.md",