File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,22 @@ Optimizes code for better WebAssembly performance:
25
25
26
26
- ` array-init-style ` : Recommends using ` new Array<T>() ` instead of ` [] ` for initializing empty arrays
27
27
28
+ - ` no-repeated-member-access ` : Recommends extracting repeated member access to improve performance
29
+
28
30
## Configuration
29
31
30
32
See ` sample_config/sample_eslint.config.mjs ` for a detailed example of how to configure and use this plugin.
31
33
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
+
32
44
## Documentation
33
45
34
46
For detailed rule documentation, see the [ docs/rules] ( ./docs/rules ) directory.
You can’t perform that action at this time.
0 commit comments