@typeform/eslint-config 6.0.3 → 6.1.0
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/.github/workflows/ci-standard-checks.yml +1 -11
- package/.github/workflows/deploy.yml +2 -2
- package/.github/workflows/tests.yml +1 -1
- package/CODEOWNERS +1 -1
- package/README.md +1 -0
- package/index.js +7 -0
- package/package.json +1 -1
|
@@ -14,14 +14,4 @@ on:
|
|
|
14
14
|
- main
|
|
15
15
|
jobs:
|
|
16
16
|
ci-standard-checks:
|
|
17
|
-
|
|
18
|
-
- ubuntu-latest
|
|
19
|
-
steps:
|
|
20
|
-
- name: Check Out Source Code
|
|
21
|
-
uses: actions/checkout@v2
|
|
22
|
-
with:
|
|
23
|
-
fetch-depth: 0
|
|
24
|
-
- name: CI Standard Checks
|
|
25
|
-
uses: Typeform/ci-standard-checks@v1
|
|
26
|
-
with:
|
|
27
|
-
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
17
|
+
uses: Typeform/.github/.github/workflows/ci-standard-checks-workflow.yaml@v1
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
uses: actions/checkout@v2
|
|
19
19
|
|
|
20
20
|
- name: Set up Node.js
|
|
21
|
-
uses: actions/setup-node@
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
22
|
with:
|
|
23
23
|
node-version: 20
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
28
28
|
npm config set @typeform:registry https://npm.pkg.github.com/
|
|
29
29
|
|
|
30
30
|
- name: Get yarn cache
|
|
31
|
-
uses: actions/cache@
|
|
31
|
+
uses: actions/cache@v4
|
|
32
32
|
id: yarn-cache
|
|
33
33
|
with:
|
|
34
34
|
path: node_modules
|
package/CODEOWNERS
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
* @Typeform/
|
|
1
|
+
* @Typeform/delivery-experience
|
package/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<a href=https://engineering-metrics.typeform.tf/standards-adoption-tool/reports/eslint-config-typeform/><img src=https://api.typeform.com/repositories/eslint-config-typeform/badges.svg /></a>
|
|
1
2
|
# eslint-config-typeform
|
|
2
3
|
|
|
3
4
|
ESLint configuration for [Typeform](https://github.com/Typeform/) front-end projects
|
package/index.js
CHANGED
|
@@ -34,6 +34,13 @@ module.exports = {
|
|
|
34
34
|
'react-hooks/exhaustive-deps': 'error',
|
|
35
35
|
'react/jsx-key': ['warn', { checkFragmentShorthand: true }],
|
|
36
36
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
37
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
38
|
+
'warn',
|
|
39
|
+
{
|
|
40
|
+
prefer: 'type-imports',
|
|
41
|
+
fixStyle: 'inline-type-imports',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
37
44
|
'no-restricted-imports': [
|
|
38
45
|
'warn',
|
|
39
46
|
{
|
package/package.json
CHANGED