@jsse/eslint-config 0.0.2 → 0.0.4

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/index.d.cts CHANGED
@@ -41,6 +41,15 @@ type ConfigItem = Omit<FlatESLintConfigItem<Rules, false>, "plugins"> & {
41
41
  */
42
42
  plugins?: Record<string, any>;
43
43
  };
44
+ type OptionsCommon = {
45
+ debug?: boolean;
46
+ /**
47
+ * The prefix for the name of the config item.
48
+ *
49
+ * @default "jsse"
50
+ */
51
+ rootName?: string;
52
+ };
44
53
  type OptionsComponentExts = {
45
54
  /**
46
55
  * Additional extensions for components.
@@ -62,6 +71,7 @@ type OptionsTypeScriptWithTypes = {
62
71
  * @see https://typescript-eslint.io/linting/typed-linting/
63
72
  */
64
73
  tsconfigPath?: string | string[];
74
+ typeAware?: boolean;
65
75
  };
66
76
  type OptionsHasTypeScript = {
67
77
  typescript?: boolean;
@@ -96,7 +106,10 @@ type OptionsConfig = {
96
106
  */
97
107
  debug?: boolean;
98
108
  tailwind?: boolean;
109
+ reportUnusedDisableDirectives?: boolean;
99
110
  off?: string[];
111
+ fast?: boolean;
112
+ prettier?: boolean;
100
113
  /**
101
114
  * Enable gitignore support.
102
115
  *
@@ -107,6 +120,7 @@ type OptionsConfig = {
107
120
  */
108
121
  gitignore?: boolean | FlatGitignoreOptions;
109
122
  tsPrefix?: string;
123
+ typeAware?: boolean;
110
124
  /**
111
125
  * Enable TypeScript support.
112
126
  *
@@ -189,6 +203,12 @@ declare function jsonc(options?: OptionsStylistic & OptionsOverrides): ConfigIte
189
203
 
190
204
  declare function node(): ConfigItem[];
191
205
 
206
+ /**
207
+ *copied from https://raw.githubusercontent.com/prettier/eslint-config-prettier/main/index.js
208
+ */
209
+ declare function eslintConfigPrettierRules(): ConfigItem["rules"];
210
+ declare function prettier(): ConfigItem[];
211
+
192
212
  declare function reactHooks(): {
193
213
  files: string[];
194
214
  plugins: {
@@ -257,4 +277,4 @@ declare function isInEditor(): boolean;
257
277
  declare function jssestd(): ConfigItem[];
258
278
  declare function jsseReact(): ConfigItem[];
259
279
 
260
- export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, combine, comments, jsse as default, ignores, imports, isCI, isInEditor, javascript, jsdoc, jsonc, jsse, jsseReact, jssestd, node, react, reactHooks, renameRules, sortPackageJson, sortTsconfig, test, typescript, unicorn };
280
+ export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_YAML, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, combine, comments, jsse as default, eslintConfigPrettierRules, ignores, imports, isCI, isInEditor, javascript, jsdoc, jsonc, jsse, jsseReact, jssestd, node, prettier, react, reactHooks, renameRules, sortPackageJson, sortTsconfig, test, typescript, unicorn };
package/dist/index.d.ts CHANGED
@@ -41,6 +41,15 @@ type ConfigItem = Omit<FlatESLintConfigItem<Rules, false>, "plugins"> & {
41
41
  */
42
42
  plugins?: Record<string, any>;
43
43
  };
44
+ type OptionsCommon = {
45
+ debug?: boolean;
46
+ /**
47
+ * The prefix for the name of the config item.
48
+ *
49
+ * @default "jsse"
50
+ */
51
+ rootName?: string;
52
+ };
44
53
  type OptionsComponentExts = {
45
54
  /**
46
55
  * Additional extensions for components.
@@ -62,6 +71,7 @@ type OptionsTypeScriptWithTypes = {
62
71
  * @see https://typescript-eslint.io/linting/typed-linting/
63
72
  */
64
73
  tsconfigPath?: string | string[];
74
+ typeAware?: boolean;
65
75
  };
66
76
  type OptionsHasTypeScript = {
67
77
  typescript?: boolean;
@@ -96,7 +106,10 @@ type OptionsConfig = {
96
106
  */
97
107
  debug?: boolean;
98
108
  tailwind?: boolean;
109
+ reportUnusedDisableDirectives?: boolean;
99
110
  off?: string[];
111
+ fast?: boolean;
112
+ prettier?: boolean;
100
113
  /**
101
114
  * Enable gitignore support.
102
115
  *
@@ -107,6 +120,7 @@ type OptionsConfig = {
107
120
  */
108
121
  gitignore?: boolean | FlatGitignoreOptions;
109
122
  tsPrefix?: string;
123
+ typeAware?: boolean;
110
124
  /**
111
125
  * Enable TypeScript support.
112
126
  *
@@ -189,6 +203,12 @@ declare function jsonc(options?: OptionsStylistic & OptionsOverrides): ConfigIte
189
203
 
190
204
  declare function node(): ConfigItem[];
191
205
 
206
+ /**
207
+ *copied from https://raw.githubusercontent.com/prettier/eslint-config-prettier/main/index.js
208
+ */
209
+ declare function eslintConfigPrettierRules(): ConfigItem["rules"];
210
+ declare function prettier(): ConfigItem[];
211
+
192
212
  declare function reactHooks(): {
193
213
  files: string[];
194
214
  plugins: {
@@ -257,4 +277,4 @@ declare function isInEditor(): boolean;
257
277
  declare function jssestd(): ConfigItem[];
258
278
  declare function jsseReact(): ConfigItem[];
259
279
 
260
- export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, combine, comments, jsse as default, ignores, imports, isCI, isInEditor, javascript, jsdoc, jsonc, jsse, jsseReact, jssestd, node, react, reactHooks, renameRules, sortPackageJson, sortTsconfig, test, typescript, unicorn };
280
+ export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_YAML, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, combine, comments, jsse as default, eslintConfigPrettierRules, ignores, imports, isCI, isInEditor, javascript, jsdoc, jsonc, jsse, jsseReact, jssestd, node, prettier, react, reactHooks, renameRules, sortPackageJson, sortTsconfig, test, typescript, unicorn };