@hubspot/eslint-config-ui-extensions 0.7.3-canary.21 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +15 -0
- package/lib/index.js +7 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.7.3](https://git.hubteam.com/HubSpot/ui-extensibility/compare/v0.7.2...v0.7.3) (2023-08-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **linting:** Initial eslint config support ([#1453](https://git.hubteam.com/HubSpot/ui-extensibility/issues/1453)) ([7d2ae57](https://git.hubteam.com/HubSpot/ui-extensibility/commits/7d2ae57e8f02e9b63468aa3881002d39078962e0))
|
package/README.md
CHANGED
|
@@ -20,8 +20,23 @@ module.exports = {
|
|
|
20
20
|
extends: "@hubspot/ui-extensions",
|
|
21
21
|
ignorePatterns: ["node_modules", "dist"],
|
|
22
22
|
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
For those using TypeScript, we'll likely expand this package to include a base setup in the near future, but in the meantime you can start here and follow these steps to get TS support:
|
|
26
|
+
|
|
27
|
+
- `npm i --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin`
|
|
28
|
+
- Adapt your lint script in package.json (if applicable) to make sure you're targeting your source files, perhaps something like `"lint": "npx eslint . --ext .ts,.tsx"`
|
|
29
|
+
- Update your eslintrc config:
|
|
23
30
|
|
|
31
|
+
```diff
|
|
32
|
+
-extends: ['@hubspot/ui-extensions'],
|
|
33
|
+
+extends: ['@hubspot/ui-extensions', 'plugin:@typescript-eslint/recommended'],
|
|
34
|
+
+plugins: ['@typescript-eslint'],
|
|
24
35
|
```
|
|
36
|
+
|
|
37
|
+
Running `npm run lint`, you should now see TypeScript-aware linting in your terminal output and it will likely automatically work inside your editor of choice as well (though some editors may require additional config steps).
|
|
38
|
+
|
|
39
|
+
|
|
25
40
|
## Rules
|
|
26
41
|
|
|
27
42
|
This config extends the following configs, meaning you can customize the `rules` entry in your project-level config to include any rules from these packages:
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/eslint-config-ui-extensions",
|
|
3
|
-
"version": "0.7.3
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "eslint plugins for HubSpot React-based UI Extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"license": "MIT",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "663cfa5f4b81bb923da5e8679e5be5437d1ddd00"
|
|
50
50
|
}
|