@dauphaihau/eslint-config 0.3.2 → 0.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/dist/index.js +2 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -269,13 +269,7 @@ function baseConfig(options = {}) {
|
|
|
269
269
|
// Indent
|
|
270
270
|
"@stylistic/indent": ["error", 2, { SwitchCase: 1 }],
|
|
271
271
|
// Commas
|
|
272
|
-
"@stylistic/comma-dangle": ["error",
|
|
273
|
-
arrays: "always-multiline",
|
|
274
|
-
objects: "always-multiline",
|
|
275
|
-
imports: "never",
|
|
276
|
-
exports: "never",
|
|
277
|
-
functions: "never"
|
|
278
|
-
}],
|
|
272
|
+
"@stylistic/comma-dangle": ["error", "always-multiline"],
|
|
279
273
|
// Line breaks
|
|
280
274
|
"@stylistic/object-curly-newline": ["error", {
|
|
281
275
|
multiline: true,
|
|
@@ -667,7 +661,7 @@ var identifierQualityRules = {
|
|
|
667
661
|
],
|
|
668
662
|
// Discourage vague placeholder names.
|
|
669
663
|
// Prefer domain-specific names such as users, payload, responseBody, or config.
|
|
670
|
-
"id-denylist": ["warn", "foo", "bar", "baz", "
|
|
664
|
+
"id-denylist": ["warn", "foo", "bar", "baz", "val", "err", "tmp", "arr", "obj"]
|
|
671
665
|
};
|
|
672
666
|
var variableNamingSelectors = [
|
|
673
667
|
// ---------- Boolean naming ----------
|