eslint-config-webpack 4.3.2 → 4.3.4
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/configs/browser.js +2 -0
- package/configs/markdown.js +4 -0
- package/configs/typescript.js +7 -2
- package/package.json +1 -1
package/configs/browser.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import importPlugin from "eslint-plugin-import";
|
|
2
|
+
import unicornPlugin from "eslint-plugin-unicorn";
|
|
2
3
|
import globals from "globals";
|
|
3
4
|
|
|
4
5
|
const recommendedBrowserConfig = {
|
|
@@ -8,6 +9,7 @@ const recommendedBrowserConfig = {
|
|
|
8
9
|
},
|
|
9
10
|
},
|
|
10
11
|
plugins: {
|
|
12
|
+
unicorn: unicornPlugin,
|
|
11
13
|
import: importPlugin,
|
|
12
14
|
},
|
|
13
15
|
rules: {
|
package/configs/markdown.js
CHANGED
|
@@ -54,6 +54,8 @@ async function getMarkdownRecommendedConfig() {
|
|
|
54
54
|
|
|
55
55
|
"no-console": "off",
|
|
56
56
|
|
|
57
|
+
"no-new": "off",
|
|
58
|
+
|
|
57
59
|
"unicorn/no-unused-properties": "off",
|
|
58
60
|
|
|
59
61
|
"n/no-unpublished-require": "off",
|
|
@@ -73,6 +75,8 @@ async function getMarkdownRecommendedConfig() {
|
|
|
73
75
|
"jsdoc/require-jsdoc": "off",
|
|
74
76
|
|
|
75
77
|
"@typescript-eslint/no-unused-vars": "off",
|
|
78
|
+
|
|
79
|
+
"@typescript-eslint/triple-slash-reference": "off",
|
|
76
80
|
},
|
|
77
81
|
},
|
|
78
82
|
];
|
package/configs/typescript.js
CHANGED
|
@@ -82,8 +82,13 @@ async function getTypescriptJSDocRecommendedConfig() {
|
|
|
82
82
|
// typescript does it
|
|
83
83
|
// "jsdoc/check-syntax": "error",
|
|
84
84
|
|
|
85
|
-
//
|
|
86
|
-
|
|
85
|
+
// Avoid conflict with jest special comment
|
|
86
|
+
"jsdoc/check-tag-names": [
|
|
87
|
+
"error",
|
|
88
|
+
{
|
|
89
|
+
definedTags: ["jest-environment"],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
87
92
|
|
|
88
93
|
// No need
|
|
89
94
|
// "jsdoc/check-template-names": "error",
|