eslint-plugin-crisp 1.5.7 → 1.5.9
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/README.md +1 -1
- package/package.json +1 -1
- package/recommended-ts.js +4 -1
- package/recommended-vue.js +1 -1
- package/recommended.js +3 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ Each item has emojis denoting:
|
|
|
79
79
|
| [key-spacing](https://eslint.org/docs/latest/rules/key-spacing) | Enforces consistent spacing in object literal properties (no space between the key and the colon, one space between the colon and the value) | | 🟢 | 🟣 |
|
|
80
80
|
| [keyword-spacing](https://eslint.org/docs/latest/rules/keyword-spacing) | Enforces consistent spacing before and after keywords | 🟠 | 🟢 | 🟣 |
|
|
81
81
|
| [linebreak-style](https://eslint.org/docs/latest/rules/linebreak-style) | Enforces Unix-style line endings | 🟠 | 🟢 | 🟣 |
|
|
82
|
-
| [max-len](https://eslint.org/docs/latest/rules/max-len) | Enforces a maximum line length of 80 / 100 characters | 🟠 | 🟢 | 🟣 |
|
|
82
|
+
| [max-len](https://eslint.org/docs/latest/rules/max-len) | Enforces a maximum line length of 80 / 100 characters (`@import`, `@typedef` and `@property` lines are ignored) | 🟠 | 🟢 | 🟣 |
|
|
83
83
|
| [newline-per-chained-call](https://eslint.org/docs/latest/rules/newline-per-chained-call) | Requires a newline after each call in a method chain | | 🟢 | 🟣 |
|
|
84
84
|
| [no-console](https://eslint.org/docs/latest/rules/no-console) | Disallows the use of `console` | 🟠 | 🟢 | 🟣 |
|
|
85
85
|
| [no-debugger](https://eslint.org/docs/latest/rules/no-debugger) | Disallows the use of `debugger` | 🟠 | 🟢 | 🟣 |
|
package/package.json
CHANGED
package/recommended-ts.js
CHANGED
|
@@ -86,7 +86,10 @@ export default function configRecommendedTS(pluginCrisp) {
|
|
|
86
86
|
],
|
|
87
87
|
"keyword-spacing": "error",
|
|
88
88
|
"linebreak-style": ["error", "unix"],
|
|
89
|
-
"max-len": ["error",
|
|
89
|
+
"max-len": ["error", {
|
|
90
|
+
"code": 100,
|
|
91
|
+
"ignorePattern": "^\\s*(?:\\/\\*\\*|\\*) @(?:import|typedef|property)"
|
|
92
|
+
}],
|
|
90
93
|
"newline-per-chained-call": "error",
|
|
91
94
|
"no-console": "warn",
|
|
92
95
|
"no-debugger": "warn",
|
package/recommended-vue.js
CHANGED
|
@@ -331,7 +331,7 @@ export default function configRecommendedVue(pluginCrisp) {
|
|
|
331
331
|
{
|
|
332
332
|
"code": 100,
|
|
333
333
|
"template": 999,
|
|
334
|
-
"ignorePattern": "^import
|
|
334
|
+
"ignorePattern": "^import|^\\s*(?:\\/\\*\\*|\\*) @(?:import|typedef|property)|\`(.+?)\`|\/\\*\\* \@type|\@return \\{|\\*{20,}",
|
|
335
335
|
"ignoreStrings": true,
|
|
336
336
|
"ignoreUrls": true,
|
|
337
337
|
"ignoreRegExpLiterals": true
|
package/recommended.js
CHANGED
|
@@ -94,7 +94,7 @@ export default function configRecommended(pluginCrisp) {
|
|
|
94
94
|
"linebreak-style": ["error", "unix"],
|
|
95
95
|
"max-len": ["error", {
|
|
96
96
|
"code": 100,
|
|
97
|
-
"ignorePattern": "
|
|
97
|
+
"ignorePattern": "^\\s*(?:\\/\\*\\*|\\*) @(?:import|typedef|property)"
|
|
98
98
|
}],
|
|
99
99
|
"no-console": "warn",
|
|
100
100
|
"no-debugger": "warn",
|
|
@@ -220,6 +220,8 @@ export default function configRecommended(pluginCrisp) {
|
|
|
220
220
|
|
|
221
221
|
"class",
|
|
222
222
|
"classdesc",
|
|
223
|
+
"extends",
|
|
224
|
+
"template",
|
|
223
225
|
|
|
224
226
|
"generator",
|
|
225
227
|
|