@paratco/eslint-config 2.1.1 → 2.2.0

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.
@@ -1,6 +1,6 @@
1
1
  declare const _default: ({
2
2
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
3
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
3
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
4
4
  files: string[];
5
5
  rules: {
6
6
  readonly eqeqeq: readonly ["warn"];
@@ -119,6 +119,17 @@ declare const _default: ({
119
119
  }];
120
120
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
121
121
  };
122
+ } | {
123
+ files: string[];
124
+ rules: {
125
+ "unicorn/filename-case": string[];
126
+ "unicorn/prevent-abbreviations": string[];
127
+ "unicorn/no-null": string[];
128
+ "unicorn/no-negated-condition": string[];
129
+ "unicorn/switch-case-braces": string[];
130
+ "unicorn/prefer-spread": string[];
131
+ "unicorn/prefer-at": string[];
132
+ };
122
133
  })[];
123
134
  export default _default;
124
135
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAiBE"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBAwBE"}
@@ -1,13 +1,16 @@
1
1
  import eslint from "@eslint/js";
2
2
  import tsEslint from "typescript-eslint";
3
+ import eslintPluginUnicorn from "eslint-plugin-unicorn";
3
4
  // Custom Rules
4
5
  import javascriptRules from "../rules/javascript.js";
5
6
  import typescriptRules from "../rules/typescript.js";
7
+ import unicornRules from "../rules/unicorn.js";
6
8
  export default [
7
9
  // Set predefined configs
8
10
  eslint.configs.recommended,
9
11
  ...tsEslint.configs.strictTypeChecked,
10
12
  ...tsEslint.configs.stylisticTypeChecked,
13
+ eslintPluginUnicorn.configs.recommended,
11
14
  // JavaScript Rules
12
15
  {
13
16
  files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
@@ -17,5 +20,10 @@ export default [
17
20
  {
18
21
  files: ["**/*.{ts,tsx}"],
19
22
  rules: typescriptRules
23
+ },
24
+ // JavaScript Rules
25
+ {
26
+ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
27
+ rules: unicornRules
20
28
  }
21
29
  ];
@@ -1,4 +1,4 @@
1
- declare const _default: (import("eslint-plugin-import-x/types").PluginFlatConfig | {
1
+ declare const _default: (import("eslint-plugin-import-x").PluginFlatConfig | {
2
2
  files: string[];
3
3
  plugins: {
4
4
  "unused-imports": import("eslint").ESLint.Plugin;
@@ -7,7 +7,7 @@ declare const _default: (import("eslint-plugin-import-x/types").PluginFlatConfig
7
7
  "import-x/resolver-next": {
8
8
  interfaceVersion: number;
9
9
  name: string;
10
- resolve(source: string, file: string): ResolvedResult;
10
+ resolve(source: string, file: string): import("eslint-plugin-import-x").ResolvedResult;
11
11
  }[];
12
12
  };
13
13
  rules: {
@@ -1,6 +1,6 @@
1
1
  declare const _default: ({
2
2
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
3
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
3
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
4
4
  files: string[];
5
5
  rules: {
6
6
  readonly eqeqeq: readonly ["warn"];
@@ -119,6 +119,17 @@ declare const _default: ({
119
119
  }];
120
120
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
121
121
  };
122
+ } | {
123
+ files: string[];
124
+ rules: {
125
+ "unicorn/filename-case": string[];
126
+ "unicorn/prevent-abbreviations": string[];
127
+ "unicorn/no-null": string[];
128
+ "unicorn/no-negated-condition": string[];
129
+ "unicorn/switch-case-braces": string[];
130
+ "unicorn/prefer-spread": string[];
131
+ "unicorn/prefer-at": string[];
132
+ };
122
133
  } | {
123
134
  languageOptions: {
124
135
  globals: {
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/configs/node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAKE"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/configs/node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAKE"}
@@ -2,7 +2,7 @@ import reactPlugin from "eslint-plugin-react";
2
2
  import reactHooksPlugin from "eslint-plugin-react-hooks";
3
3
  declare const _default: ({
4
4
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
5
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
5
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
6
6
  files: string[];
7
7
  rules: {
8
8
  readonly eqeqeq: readonly ["warn"];
@@ -121,6 +121,17 @@ declare const _default: ({
121
121
  }];
122
122
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
123
123
  };
124
+ } | {
125
+ files: string[];
126
+ rules: {
127
+ "unicorn/filename-case": string[];
128
+ "unicorn/prevent-abbreviations": string[];
129
+ "unicorn/no-null": string[];
130
+ "unicorn/no-negated-condition": string[];
131
+ "unicorn/switch-case-braces": string[];
132
+ "unicorn/prefer-spread": string[];
133
+ "unicorn/prefer-at": string[];
134
+ };
124
135
  } | {
125
136
  languageOptions: {
126
137
  globals: {
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMzD,wBA+CE"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  base: ({
3
3
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
4
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
4
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
5
5
  files: string[];
6
6
  rules: {
7
7
  readonly eqeqeq: readonly ["warn"];
@@ -120,10 +120,21 @@ declare const _default: {
120
120
  }];
121
121
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
122
122
  };
123
+ } | {
124
+ files: string[];
125
+ rules: {
126
+ "unicorn/filename-case": string[];
127
+ "unicorn/prevent-abbreviations": string[];
128
+ "unicorn/no-null": string[];
129
+ "unicorn/no-negated-condition": string[];
130
+ "unicorn/switch-case-braces": string[];
131
+ "unicorn/prefer-spread": string[];
132
+ "unicorn/prefer-at": string[];
133
+ };
123
134
  })[];
124
135
  react: ({
125
136
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
126
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
137
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
127
138
  files: string[];
128
139
  rules: {
129
140
  readonly eqeqeq: readonly ["warn"];
@@ -242,6 +253,17 @@ declare const _default: {
242
253
  }];
243
254
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
244
255
  };
256
+ } | {
257
+ files: string[];
258
+ rules: {
259
+ "unicorn/filename-case": string[];
260
+ "unicorn/prevent-abbreviations": string[];
261
+ "unicorn/no-null": string[];
262
+ "unicorn/no-negated-condition": string[];
263
+ "unicorn/switch-case-braces": string[];
264
+ "unicorn/prefer-spread": string[];
265
+ "unicorn/prefer-at": string[];
266
+ };
245
267
  } | {
246
268
  languageOptions: {
247
269
  globals: {
@@ -2982,7 +3004,7 @@ declare const _default: {
2982
3004
  })[];
2983
3005
  node: ({
2984
3006
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
2985
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
3007
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
2986
3008
  files: string[];
2987
3009
  rules: {
2988
3010
  readonly eqeqeq: readonly ["warn"];
@@ -3101,6 +3123,17 @@ declare const _default: {
3101
3123
  }];
3102
3124
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
3103
3125
  };
3126
+ } | {
3127
+ files: string[];
3128
+ rules: {
3129
+ "unicorn/filename-case": string[];
3130
+ "unicorn/prevent-abbreviations": string[];
3131
+ "unicorn/no-null": string[];
3132
+ "unicorn/no-negated-condition": string[];
3133
+ "unicorn/switch-case-braces": string[];
3134
+ "unicorn/prefer-spread": string[];
3135
+ "unicorn/prefer-at": string[];
3136
+ };
3104
3137
  } | {
3105
3138
  languageOptions: {
3106
3139
  globals: {
@@ -3181,7 +3214,7 @@ declare const _default: {
3181
3214
  };
3182
3215
  };
3183
3216
  })[];
3184
- import: (import("eslint-plugin-import-x/types").PluginFlatConfig | {
3217
+ import: (import("eslint-plugin-import-x").PluginFlatConfig | {
3185
3218
  files: string[];
3186
3219
  plugins: {
3187
3220
  "unused-imports": import("eslint").ESLint.Plugin;
@@ -3190,7 +3223,7 @@ declare const _default: {
3190
3223
  "import-x/resolver-next": {
3191
3224
  interfaceVersion: number;
3192
3225
  name: string;
3193
- resolve(source: string, file: string): ResolvedResult;
3226
+ resolve(source: string, file: string): import("eslint-plugin-import-x").ResolvedResult;
3194
3227
  }[];
3195
3228
  };
3196
3229
  rules: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAOE"}
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ "unicorn/filename-case": string[];
3
+ "unicorn/prevent-abbreviations": string[];
4
+ "unicorn/no-null": string[];
5
+ "unicorn/no-negated-condition": string[];
6
+ "unicorn/switch-case-braces": string[];
7
+ "unicorn/prefer-spread": string[];
8
+ "unicorn/prefer-at": string[];
9
+ };
10
+ export default _default;
11
+ //# sourceMappingURL=unicorn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/rules/unicorn.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wBA4BE"}
@@ -0,0 +1,23 @@
1
+ export default {
2
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
3
+ // Enforce a case style for filenames.
4
+ "unicorn/filename-case": ["off"],
5
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md
6
+ // Prevent abbreviations.
7
+ "unicorn/prevent-abbreviations": ["off"],
8
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-null.md
9
+ // Disallow the use of the null literal.
10
+ "unicorn/no-null": ["off"],
11
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md
12
+ // Disallow negated conditions.
13
+ "unicorn/no-negated-condition": ["off"],
14
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md
15
+ // Enforce consistent brace style for case clauses.
16
+ "unicorn/switch-case-braces": ["off"],
17
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-spread.md
18
+ // Prefer the spread operator over Array.from(…), Array#concat(…), Array#{slice,toSpliced}() and String#split('').
19
+ "unicorn/prefer-spread": ["off"],
20
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md
21
+ // Prefer .at() method for index access and String#charAt().
22
+ "unicorn/prefer-at": ["off"]
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "author": "Paratco",
6
6
  "license": "ISC",
@@ -37,25 +37,26 @@
37
37
  "build": "tsc"
38
38
  },
39
39
  "peerDependencies": {
40
- "eslint": "^9.24.0",
41
- "typescript-eslint": "^8.29.0"
40
+ "eslint": "^9.25.1",
41
+ "typescript-eslint": "^8.31.0"
42
42
  },
43
43
  "optionalDependencies": {
44
44
  "prettier": "^3.5.3"
45
45
  },
46
46
  "dependencies": {
47
- "@eslint/js": "^9.24.0",
47
+ "@eslint/js": "^9.25.1",
48
48
  "@stylistic/eslint-plugin": "^4.2.0",
49
- "eslint": "^9.24.0",
50
- "eslint-config-prettier": "^10.1.1",
51
- "eslint-import-resolver-typescript": "^4.3.1",
52
- "eslint-plugin-import-x": "^4.10.1",
49
+ "eslint": "^9.25.1",
50
+ "eslint-config-prettier": "^10.1.2",
51
+ "eslint-import-resolver-typescript": "^4.3.4",
52
+ "eslint-plugin-import-x": "^4.10.6",
53
53
  "eslint-plugin-react": "^7.37.5",
54
54
  "eslint-plugin-react-hooks": "5.2.0",
55
- "eslint-plugin-react-refresh": "^0.4.19",
55
+ "eslint-plugin-react-refresh": "^0.4.20",
56
+ "eslint-plugin-unicorn": "^58.0.0",
56
57
  "eslint-plugin-unused-imports": "^4.1.4",
57
58
  "globals": "^16.0.0",
58
- "typescript-eslint": "^8.29.0"
59
+ "typescript-eslint": "^8.31.0"
59
60
  },
60
61
  "devDependencies": {
61
62
  "typescript": "^5.8.3"