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:
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
3032See ` 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
3446For detailed rule documentation, see the [ docs/rules] ( ./docs/rules ) directory.
You can’t perform that action at this time.
0 commit comments