@borela-tech/eslint-config 2.4.0 → 2.4.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
@@ -17,7 +17,7 @@ Shared ESLint configuration for Borela Tech projects.
17
17
  - [React Hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
18
18
  - [Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)
19
19
  - [TypeScript ESLint](https://typescript-eslint.io/)
20
- - [Unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) (53 rules)
20
+ - [Unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
21
21
  - 17 custom rules for consistent code organization:
22
22
  - [`brace-style-control-statements`](#brace-style-control-statements)
23
23
  - [`export-filename-match`](#export-filename-match)
@@ -49,8 +49,8 @@ Create a file named `eslint.config.ts` in the root of your project and add the
49
49
  following code:
50
50
 
51
51
  ```typescript
52
- import {CONFIG} from '@borela-tech/eslint-config'
53
- export default CONFIG
52
+ import {config} from '@borela-tech/eslint-config'
53
+ export {config as default}
54
54
  ```
55
55
 
56
56
  ## Custom Rules
package/dist/index.mjs CHANGED
@@ -3744,7 +3744,10 @@ const typescriptRules = {
3744
3744
  "error",
3745
3745
  { fixStyle: "separate-type-imports" }
3746
3746
  ],
3747
- "@typescript-eslint/explicit-function-return-type": "error",
3747
+ "@typescript-eslint/explicit-function-return-type": [
3748
+ "error",
3749
+ { allowExpressions: true }
3750
+ ],
3748
3751
  "@typescript-eslint/no-empty-function": "off",
3749
3752
  "@typescript-eslint/no-unused-vars": ["error", {
3750
3753
  argsIgnorePattern: "^_",