@aiou/eslint-config 2.0.2 → 2.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/dts/globs.d.ts CHANGED
@@ -11,6 +11,7 @@ export declare const GLOB_JSX = "**/*.?([cm])jsx";
11
11
  export declare const GLOB_JSON = "**/*.json";
12
12
  export declare const GLOB_JSON5 = "**/*.json5";
13
13
  export declare const GLOB_JSONC = "**/*.jsonc";
14
+ export declare const GLOB_CLAUDE_JSON = "**/.claude/*.json";
14
15
  export declare const GLOB_MARKDOWN = "**/*.md";
15
16
  export declare const GLOB_VUE = "**/*.vue";
16
17
  export declare const GLOB_YAML = "**/*.y?(a)ml";
package/dts/typegen.d.ts CHANGED
@@ -1231,6 +1231,51 @@ export interface Rules {
1231
1231
  * @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
1232
1232
  */
1233
1233
  '@typescript-eslint/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>;
1234
+ /**
1235
+ * require a `eslint-enable` comment for every `eslint-disable` comment
1236
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
1237
+ */
1238
+ 'eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommentsDisableEnablePair>;
1239
+ /**
1240
+ * disallow a `eslint-enable` comment for multiple `eslint-disable` comments
1241
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
1242
+ */
1243
+ 'eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>;
1244
+ /**
1245
+ * disallow duplicate `eslint-disable` comments
1246
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
1247
+ */
1248
+ 'eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>;
1249
+ /**
1250
+ * disallow `eslint-disable` comments about specific rules
1251
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
1252
+ */
1253
+ 'eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommentsNoRestrictedDisable>;
1254
+ /**
1255
+ * disallow `eslint-disable` comments without rule names
1256
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
1257
+ */
1258
+ 'eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>;
1259
+ /**
1260
+ * disallow unused `eslint-disable` comments
1261
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
1262
+ */
1263
+ 'eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
1264
+ /**
1265
+ * disallow unused `eslint-enable` comments
1266
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
1267
+ */
1268
+ 'eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>;
1269
+ /**
1270
+ * disallow ESLint directive-comments
1271
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
1272
+ */
1273
+ 'eslint-comments/no-use'?: Linter.RuleEntry<EslintCommentsNoUse>;
1274
+ /**
1275
+ * require include descriptions in ESLint directive-comments
1276
+ * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
1277
+ */
1278
+ 'eslint-comments/require-description'?: Linter.RuleEntry<EslintCommentsRequireDescription>;
1234
1279
  /**
1235
1280
  * Forbids the assignment of returned, mutated arrays.
1236
1281
  * @see https://github.com/cartant/eslint-plugin-etc/tree/main/docs/rules/no-assign-mutated-array.md
@@ -3081,22 +3126,6 @@ export interface Rules {
3081
3126
  * @see https://github.com/lydell/eslint-plugin-simple-import-sort#sort-order
3082
3127
  */
3083
3128
  'simple-import-sort/imports'?: Linter.RuleEntry<SimpleImportSortImports>;
3084
- /**
3085
- * disallow use of DOM globals in class constructors
3086
- */
3087
- 'ssr-friendly/no-dom-globals-in-constructor'?: Linter.RuleEntry<[]>;
3088
- /**
3089
- * disallow use of DOM globals in module scope
3090
- */
3091
- 'ssr-friendly/no-dom-globals-in-module-scope'?: Linter.RuleEntry<[]>;
3092
- /**
3093
- * disallow use of DOM globals in render() method of a React class-component
3094
- */
3095
- 'ssr-friendly/no-dom-globals-in-react-cc-render'?: Linter.RuleEntry<[]>;
3096
- /**
3097
- * disallow use of DOM globals in the render-cycle of a React FC
3098
- */
3099
- 'ssr-friendly/no-dom-globals-in-react-fc'?: Linter.RuleEntry<[]>;
3100
3129
  /**
3101
3130
  * Enforce a consistent and logical order of the Tailwind CSS classnames
3102
3131
  * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/classnames-order.md
@@ -6052,6 +6081,22 @@ type TypescriptEslintUnifiedSignatures = [] | [
6052
6081
  ignoreOverloadsWithDifferentJSDoc?: boolean;
6053
6082
  }
6054
6083
  ];
6084
+ type EslintCommentsDisableEnablePair = [] | [
6085
+ {
6086
+ allowWholeFile?: boolean;
6087
+ }
6088
+ ];
6089
+ type EslintCommentsNoRestrictedDisable = string[];
6090
+ type EslintCommentsNoUse = [] | [
6091
+ {
6092
+ allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
6093
+ }
6094
+ ];
6095
+ type EslintCommentsRequireDescription = [] | [
6096
+ {
6097
+ ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
6098
+ }
6099
+ ];
6055
6100
  type EtcNoConstEnum = [] | [
6056
6101
  {
6057
6102
  allowLocal?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiou/eslint-config",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "description": "eslint config for JW",
6
6
  "keywords": [],
@@ -59,7 +59,6 @@
59
59
  "eslint-plugin-react-refresh": "^0.4.20",
60
60
  "eslint-plugin-regexp": "^2.10.0",
61
61
  "eslint-plugin-simple-import-sort": "^12.0.0",
62
- "eslint-plugin-ssr-friendly": "^1.3.0",
63
62
  "eslint-plugin-tailwindcss": "^3.18.0",
64
63
  "eslint-plugin-unicorn": "^60.0.0",
65
64
  "eslint-plugin-unused-imports": "^4.2.0",
@@ -68,8 +67,8 @@
68
67
  "jsonc-eslint-parser": "^2.4.0",
69
68
  "local-pkg": "^0.4.3",
70
69
  "yaml-eslint-parser": "^1.3.0",
71
- "@aiou/eslint-plugin-progress": "0.3.1",
72
- "@aiou/eslint-ignore": "0.6.0"
70
+ "@aiou/eslint-ignore": "0.6.0",
71
+ "@aiou/eslint-plugin-progress": "0.3.1"
73
72
  },
74
73
  "devDependencies": {
75
74
  "@rollup/plugin-alias": "4.0.3",