Skip to content

Commit c105abb

Browse files
committed
Update readme
1 parent f9382c6 commit c105abb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,22 @@ Optimizes code for better WebAssembly performance:
2525

2626
- `array-init-style`: Recommends using `new Array<T>()` instead of `[]` for initializing empty arrays
2727

28+
- `no-repeated-member-access`: Recommends extracting repeated member access to improve performance
29+
2830
## Configuration
2931

3032
See `sample_config/sample_eslint.config.mjs` for a detailed example of how to configure and use this plugin.
3133

34+
It includes some other pre-written rules including:
35+
36+
- `no-implicit-globals`: Warns against creating implicit global variables
37+
- `curly`: Requires curly braces for all control statements to prevent error-prone one-liner code
38+
- `@typescript-eslint/no-restricted-types`: Enforces AssemblyScript-specific type usage:
39+
- Use `string` instead of `String`
40+
- Use `bool` instead of `Boolean`
41+
- Disallows unsupported types like `undefined` and `object`
42+
- `@typescript-eslint/adjacent-overload-signatures`: Requires overload signatures to be adjacent
43+
3244
## Documentation
3345

3446
For detailed rule documentation, see the [docs/rules](./docs/rules) directory.

0 commit comments

Comments
 (0)