Skip to content

Commit 3efea28

Browse files
authored
Merge pull request #3 from salesforce/remove-styling-rules
Remove styling rules
2 parents c56cd3c + 42c5931 commit 3efea28

File tree

4 files changed

+4
-170
lines changed

4 files changed

+4
-170
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Example of `.eslintrc`:
1616

1717
```json
1818
{
19-
"extends": ["@salesforce/eslint-config-lwc/recommended", "@salesforce/eslint-config-lwc/style"]
19+
"extends": ["@salesforce/eslint-config-lwc/recommended"]
2020
}
2121
```
2222

2323
For more details about configuration please refer to the dedicated section in the ESLint documentation: https://eslint.org/docs/user-guide/configuring#using-a-shareable-configuration-package
2424

2525
## Configurations
2626

27-
This package exposes 4 configurations for your usage.
27+
This package exposes 3 configurations for your usage.
2828

2929
### `@salesforce/eslint-config-lwc/base` configuration
3030

@@ -45,15 +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). 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..
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 configuration 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_.
52-
53-
### `@salesforce/eslint-config-lwc/style` configuration
54-
55-
**Goal:**
56-
Enforces Salesforce code style rules for LWC modules.
57-
58-
**Rules:**
59-
Some of the [Stylistic Issues](https://eslint.org/docs/rules/#stylistic-issues) and [_Best Practices_](https://eslint.org/docs/rules/#best-practices) rules.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
"base.js",
4040
"extended.js",
4141
"index.js",
42-
"recommended.js",
43-
"style.js"
42+
"recommended.js"
4443
],
4544
"husky": {
4645
"hooks": {

style.js

Lines changed: 0 additions & 82 deletions
This file was deleted.

test/style.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)