@paratco/eslint-config 2.1.2 → 2.2.1

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,19 @@ 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
+ "unicorn/no-typeof-undefined": string[];
133
+ "unicorn/no-static-only-class": string[];
134
+ };
122
135
  })[];
123
136
  export default _default;
124
137
  //# 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,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,19 @@ 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
+ "unicorn/no-typeof-undefined": string[];
133
+ "unicorn/no-static-only-class": string[];
134
+ };
122
135
  } | {
123
136
  languageOptions: {
124
137
  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,19 @@ 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
+ "unicorn/no-typeof-undefined": string[];
135
+ "unicorn/no-static-only-class": string[];
136
+ };
124
137
  } | {
125
138
  languageOptions: {
126
139
  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,23 @@ 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
+ "unicorn/no-typeof-undefined": string[];
134
+ "unicorn/no-static-only-class": string[];
135
+ };
123
136
  })[];
124
137
  react: ({
125
138
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
126
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
139
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
127
140
  files: string[];
128
141
  rules: {
129
142
  readonly eqeqeq: readonly ["warn"];
@@ -242,6 +255,19 @@ declare const _default: {
242
255
  }];
243
256
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
244
257
  };
258
+ } | {
259
+ files: string[];
260
+ rules: {
261
+ "unicorn/filename-case": string[];
262
+ "unicorn/prevent-abbreviations": string[];
263
+ "unicorn/no-null": string[];
264
+ "unicorn/no-negated-condition": string[];
265
+ "unicorn/switch-case-braces": string[];
266
+ "unicorn/prefer-spread": string[];
267
+ "unicorn/prefer-at": string[];
268
+ "unicorn/no-typeof-undefined": string[];
269
+ "unicorn/no-static-only-class": string[];
270
+ };
245
271
  } | {
246
272
  languageOptions: {
247
273
  globals: {
@@ -2982,7 +3008,7 @@ declare const _default: {
2982
3008
  })[];
2983
3009
  node: ({
2984
3010
  readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
2985
- } | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
3011
+ } | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
2986
3012
  files: string[];
2987
3013
  rules: {
2988
3014
  readonly eqeqeq: readonly ["warn"];
@@ -3101,6 +3127,19 @@ declare const _default: {
3101
3127
  }];
3102
3128
  readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
3103
3129
  };
3130
+ } | {
3131
+ files: string[];
3132
+ rules: {
3133
+ "unicorn/filename-case": string[];
3134
+ "unicorn/prevent-abbreviations": string[];
3135
+ "unicorn/no-null": string[];
3136
+ "unicorn/no-negated-condition": string[];
3137
+ "unicorn/switch-case-braces": string[];
3138
+ "unicorn/prefer-spread": string[];
3139
+ "unicorn/prefer-at": string[];
3140
+ "unicorn/no-typeof-undefined": string[];
3141
+ "unicorn/no-static-only-class": string[];
3142
+ };
3104
3143
  } | {
3105
3144
  languageOptions: {
3106
3145
  globals: {
@@ -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,13 @@
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
+ "unicorn/no-typeof-undefined": string[];
10
+ "unicorn/no-static-only-class": string[];
11
+ };
12
+ export default _default;
13
+ //# sourceMappingURL=unicorn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/rules/unicorn.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wBAoCE"}
@@ -0,0 +1,29 @@
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
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
24
+ // Disallow comparing undefined using typeof.
25
+ "unicorn/no-typeof-undefined": ["off"],
26
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
27
+ // Disallow classes that only have static members.
28
+ "unicorn/no-static-only-class": ["off"]
29
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "2.1.2",
3
+ "version": "2.2.1",
4
4
  "type": "module",
5
5
  "author": "Paratco",
6
6
  "license": "ISC",
@@ -14,7 +14,6 @@
14
14
  ".": {
15
15
  "import": "./dist/index.js",
16
16
  "types": "./dist/index.d.ts"
17
-
18
17
  }
19
18
  },
20
19
  "repository": {
@@ -50,10 +49,11 @@
50
49
  "eslint": "^9.25.1",
51
50
  "eslint-config-prettier": "^10.1.2",
52
51
  "eslint-import-resolver-typescript": "^4.3.4",
53
- "eslint-plugin-import-x": "^4.10.6",
52
+ "eslint-plugin-import-x": "^4.11.0",
54
53
  "eslint-plugin-react": "^7.37.5",
55
54
  "eslint-plugin-react-hooks": "5.2.0",
56
55
  "eslint-plugin-react-refresh": "^0.4.20",
56
+ "eslint-plugin-unicorn": "^59.0.0",
57
57
  "eslint-plugin-unused-imports": "^4.1.4",
58
58
  "globals": "^16.0.0",
59
59
  "typescript-eslint": "^8.31.0"