@haltcase/style 2.0.2-canary.1 → 2.1.0
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/eslint/rules/unicorn.js +10 -1
- package/package.json +6 -1
package/eslint/rules/unicorn.js
CHANGED
|
@@ -624,9 +624,18 @@ module.exports = {
|
|
|
624
624
|
/.+-env\.d/
|
|
625
625
|
],
|
|
626
626
|
replacements: {
|
|
627
|
+
// revise default abbreviations for reserved words/keywords
|
|
628
|
+
// (because I think the default hanging underscores look nasty)
|
|
627
629
|
args: false,
|
|
630
|
+
fn: false,
|
|
631
|
+
func: {
|
|
632
|
+
fn: true,
|
|
633
|
+
function: false
|
|
634
|
+
},
|
|
635
|
+
mod: false,
|
|
636
|
+
pkg: false,
|
|
628
637
|
|
|
629
|
-
//
|
|
638
|
+
// allow commonly used abbreviations in React projects
|
|
630
639
|
prop: false,
|
|
631
640
|
props: false,
|
|
632
641
|
ref: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haltcase/style",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "haltcase's web ecosystem style guide & configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -74,9 +74,14 @@
|
|
|
74
74
|
"prettier-plugin-packagejson": "^2.4.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
+
"@actions/core": "^1.10.0",
|
|
78
|
+
"@actions/exec": "^1.1.1",
|
|
79
|
+
"@actions/github": "^5.1.1",
|
|
77
80
|
"@commitlint/cli": "^17.6.5",
|
|
78
81
|
"@commitlint/config-conventional": "^17.6.5",
|
|
82
|
+
"@octokit/types": "^10.0.0",
|
|
79
83
|
"@semantic-release/git": "^10.0.1",
|
|
84
|
+
"@types/node": "20",
|
|
80
85
|
"eslint": "^8.42.0",
|
|
81
86
|
"husky": "^8.0.3",
|
|
82
87
|
"prettier": "^2.8.8",
|