@commencis/eslint-config 1.4.2 → 1.4.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 +6 -0
- package/dist/configs/next.js +10 -1
- package/dist/configs/react-native.js +10 -1
- package/dist/configs/react.js +10 -1
- package/dist/configs/typescript.js +10 -1
- package/dist/configs/vue.js +10 -1
- package/dist/index.js +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/configs/next.js
CHANGED
|
@@ -81,7 +81,16 @@ var typescriptRules = {
|
|
|
81
81
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
82
82
|
"@typescript-eslint/no-empty-function": "off",
|
|
83
83
|
"@typescript-eslint/array-type": "off",
|
|
84
|
-
"@typescript-eslint/explicit-function-return-type": "error"
|
|
84
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
85
|
+
"@typescript-eslint/no-unused-vars": [
|
|
86
|
+
"error",
|
|
87
|
+
{
|
|
88
|
+
argsIgnorePattern: "^_",
|
|
89
|
+
caughtErrorsIgnorePattern: "^_",
|
|
90
|
+
destructuredArrayIgnorePattern: "^_",
|
|
91
|
+
varsIgnorePattern: "^_"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
85
94
|
};
|
|
86
95
|
|
|
87
96
|
// src/plugins/importSortPlugin.ts
|
|
@@ -81,7 +81,16 @@ var typescriptRules = {
|
|
|
81
81
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
82
82
|
"@typescript-eslint/no-empty-function": "off",
|
|
83
83
|
"@typescript-eslint/array-type": "off",
|
|
84
|
-
"@typescript-eslint/explicit-function-return-type": "error"
|
|
84
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
85
|
+
"@typescript-eslint/no-unused-vars": [
|
|
86
|
+
"error",
|
|
87
|
+
{
|
|
88
|
+
argsIgnorePattern: "^_",
|
|
89
|
+
caughtErrorsIgnorePattern: "^_",
|
|
90
|
+
destructuredArrayIgnorePattern: "^_",
|
|
91
|
+
varsIgnorePattern: "^_"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
85
94
|
};
|
|
86
95
|
|
|
87
96
|
// src/plugins/importSortPlugin.ts
|
package/dist/configs/react.js
CHANGED
|
@@ -81,7 +81,16 @@ var typescriptRules = {
|
|
|
81
81
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
82
82
|
"@typescript-eslint/no-empty-function": "off",
|
|
83
83
|
"@typescript-eslint/array-type": "off",
|
|
84
|
-
"@typescript-eslint/explicit-function-return-type": "error"
|
|
84
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
85
|
+
"@typescript-eslint/no-unused-vars": [
|
|
86
|
+
"error",
|
|
87
|
+
{
|
|
88
|
+
argsIgnorePattern: "^_",
|
|
89
|
+
caughtErrorsIgnorePattern: "^_",
|
|
90
|
+
destructuredArrayIgnorePattern: "^_",
|
|
91
|
+
varsIgnorePattern: "^_"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
85
94
|
};
|
|
86
95
|
|
|
87
96
|
// src/plugins/importSortPlugin.ts
|
|
@@ -6,7 +6,16 @@ var typescriptRules = {
|
|
|
6
6
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
7
7
|
"@typescript-eslint/no-empty-function": "off",
|
|
8
8
|
"@typescript-eslint/array-type": "off",
|
|
9
|
-
"@typescript-eslint/explicit-function-return-type": "error"
|
|
9
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
10
|
+
"@typescript-eslint/no-unused-vars": [
|
|
11
|
+
"error",
|
|
12
|
+
{
|
|
13
|
+
argsIgnorePattern: "^_",
|
|
14
|
+
caughtErrorsIgnorePattern: "^_",
|
|
15
|
+
destructuredArrayIgnorePattern: "^_",
|
|
16
|
+
varsIgnorePattern: "^_"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
10
19
|
};
|
|
11
20
|
|
|
12
21
|
// src/configs/typescript.ts
|
package/dist/configs/vue.js
CHANGED
|
@@ -84,7 +84,16 @@ var typescriptRules = {
|
|
|
84
84
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
85
85
|
"@typescript-eslint/no-empty-function": "off",
|
|
86
86
|
"@typescript-eslint/array-type": "off",
|
|
87
|
-
"@typescript-eslint/explicit-function-return-type": "error"
|
|
87
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
88
|
+
"@typescript-eslint/no-unused-vars": [
|
|
89
|
+
"error",
|
|
90
|
+
{
|
|
91
|
+
argsIgnorePattern: "^_",
|
|
92
|
+
caughtErrorsIgnorePattern: "^_",
|
|
93
|
+
destructuredArrayIgnorePattern: "^_",
|
|
94
|
+
varsIgnorePattern: "^_"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
88
97
|
};
|
|
89
98
|
|
|
90
99
|
// src/plugins/importSortPlugin.ts
|
package/dist/index.js
CHANGED
|
@@ -84,7 +84,16 @@ var typescriptRules = {
|
|
|
84
84
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
85
85
|
"@typescript-eslint/no-empty-function": "off",
|
|
86
86
|
"@typescript-eslint/array-type": "off",
|
|
87
|
-
"@typescript-eslint/explicit-function-return-type": "error"
|
|
87
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
88
|
+
"@typescript-eslint/no-unused-vars": [
|
|
89
|
+
"error",
|
|
90
|
+
{
|
|
91
|
+
argsIgnorePattern: "^_",
|
|
92
|
+
caughtErrorsIgnorePattern: "^_",
|
|
93
|
+
destructuredArrayIgnorePattern: "^_",
|
|
94
|
+
varsIgnorePattern: "^_"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
88
97
|
};
|
|
89
98
|
|
|
90
99
|
// src/plugins/importSortPlugin.ts
|