@haltcase/style 1.0.0-canary.2 → 1.0.0-canary.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/eslint/constants.js +1 -1
- package/eslint/rules/unicorn.js +14 -1
- package/package.json +1 -1
package/eslint/constants.js
CHANGED
|
@@ -13,7 +13,7 @@ module.exports = {
|
|
|
13
13
|
typescriptFiles: ["*.ts?(x)"],
|
|
14
14
|
|
|
15
15
|
configFiles: ["**/*.config.{m,}{js,ts}"],
|
|
16
|
-
scriptFiles: [
|
|
16
|
+
scriptFiles: ["**/scripts/*", "**/prisma/*"],
|
|
17
17
|
|
|
18
18
|
nextJsPageFiles: ["**/{pages,app}/**/*.{m,}{js,ts}x"],
|
|
19
19
|
nextJsApiRoutes: ["**/{pages,app}/api/**/*.{m,}{js,ts}"]
|
package/eslint/rules/unicorn.js
CHANGED
|
@@ -616,7 +616,20 @@ module.exports = {
|
|
|
616
616
|
*
|
|
617
617
|
* 🔧 Fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md
|
|
618
618
|
*/
|
|
619
|
-
"unicorn/prevent-abbreviations":
|
|
619
|
+
"unicorn/prevent-abbreviations": [
|
|
620
|
+
error,
|
|
621
|
+
{
|
|
622
|
+
replacements: {
|
|
623
|
+
args: false,
|
|
624
|
+
|
|
625
|
+
// DX improvements particularly for React projects
|
|
626
|
+
prop: false,
|
|
627
|
+
props: false,
|
|
628
|
+
ref: false,
|
|
629
|
+
refs: false
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
],
|
|
620
633
|
/**
|
|
621
634
|
* Enforce consistent relative URL style.
|
|
622
635
|
*
|