@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 +3 -3
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/jest.config.ts +1 -6
- package/package.json +3 -3
- package/vite.config.ts +0 -1
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)
|
|
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 {
|
|
53
|
-
export default
|
|
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":
|
|
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: "^_",
|