Skip to content

Commit 59a106a

Browse files
authored
Merge pull request #1 from salesforce/kevinv11n-patch-1
Update README.md
2 parents af7e49d + 8dde0b7 commit 59a106a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Prevent common Javascript pitfalls and enforces all best practices.
4545
### `@salesforce/eslint-config-lwc/extended` configuration
4646

4747
**Goal:**
48-
Restrict usage of some Javascript language features known to be slow after the _COMPAT_ transformation. LWC runs in _COMPAT_ mode on older browsers (eg. IE11). In order to support new javascript syntax and language features on those browser, the LWC compiler need to do some transformations to the LWC module. Some of those transformations are known to be slow, this linting config targets certain patterns that are known to be expensive at runtime.
48+
Restrict usage of some Javascript language features known to be slow after the _COMPAT_ transformation. LWC runs in _COMPAT_ mode on older browsers (eg. IE11). To support new Javascript syntax and language features on older browser the LWC compiler transforms LWC modules. This linting configuraton targets patterns known to be slow in _COMPAT_ mode..
4949

5050
**Rules:**
5151
`@salesforce/eslint-config-lwc/recommended` rules + restrict usage of some slow patterns in _COMPAT_.

lib/defaults.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
'use strict';
22

33
/**
4-
* Base configuration for all the shared configuration. This file is intentionally not located at the root of the
5-
* package like the other configuration to about being consumed like the other shareable config via:
6-
*
7-
* ```
8-
* {
9-
* "extends": "@salesforce/eslint-config-lwc/default"
10-
* }
11-
* ```
4+
* Internal base configuration for all the shared configuration. This file is intentionally not located at the root of
5+
* the package to avoid being exported and exposed.
126
*/
137
module.exports = {
148
parser: 'babel-eslint',

0 commit comments

Comments
 (0)