@open-xchange/linter-presets 0.1.0 → 0.1.1
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
CHANGED
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ export default function stylistic(options) {
|
|
|
78
78
|
"@stylistic/quote-props": ["error", "as-needed"],
|
|
79
79
|
"@stylistic/quotes": (quotes === "off") ? "off" : ["error", quotes, { avoidEscape: true }],
|
|
80
80
|
"@stylistic/rest-spread-spacing": "error",
|
|
81
|
-
"@stylistic/semi":
|
|
81
|
+
"@stylistic/semi": (semi === "off") ? "off" : ["error", semi],
|
|
82
82
|
"@stylistic/semi-spacing": "error",
|
|
83
83
|
"@stylistic/semi-style": "error",
|
|
84
84
|
"@stylistic/space-before-blocks": "error",
|
package/dist/eslint/index.js
CHANGED
|
@@ -29,10 +29,15 @@ export interface StylisticOptions {
|
|
|
29
29
|
*/
|
|
30
30
|
indent?: number;
|
|
31
31
|
/**
|
|
32
|
-
* Specifies
|
|
33
|
-
*
|
|
32
|
+
* Specifies how to treat semicolons.
|
|
33
|
+
*
|
|
34
|
+
* - "always": Require semicolons following all statements.
|
|
35
|
+
* - "never": Require to omit semicolons according to ASI rules.
|
|
36
|
+
* - "off": Semicolons will not be checked.
|
|
37
|
+
*
|
|
38
|
+
* Default value is "never".
|
|
34
39
|
*/
|
|
35
|
-
semi?:
|
|
40
|
+
semi?: "always" | "never" | "off";
|
|
36
41
|
/**
|
|
37
42
|
* The type of the string delimiter character. Default value is "single".
|
|
38
43
|
*/
|
package/doc/eslint/README.md
CHANGED
|
@@ -57,7 +57,7 @@ export default [
|
|
|
57
57
|
ignores: ["dist/*", "external/**/*.yaml"],
|
|
58
58
|
language: { ecmaVersion: 2024, sourceType: "commonjs" },
|
|
59
59
|
license: resolve("./license.txt"),
|
|
60
|
-
stylistic: { quotes: "double", semi:
|
|
60
|
+
stylistic: { quotes: "double", semi: "always" },
|
|
61
61
|
}),
|
|
62
62
|
]
|
|
63
63
|
```
|
package/package.json
CHANGED