@adbayb/stack 2.40.0-next-6049a9b → 2.40.0-next-d2a93ae
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/configs/oxlint/index.ts +18 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/configs/oxlint/index.ts
CHANGED
|
@@ -33,6 +33,7 @@ export default defineConfig({
|
|
|
33
33
|
nursery: "error",
|
|
34
34
|
pedantic: "error",
|
|
35
35
|
perf: "error",
|
|
36
|
+
restriction: "error",
|
|
36
37
|
style: "error",
|
|
37
38
|
suspicious: "error",
|
|
38
39
|
},
|
|
@@ -55,11 +56,13 @@ export default defineConfig({
|
|
|
55
56
|
],
|
|
56
57
|
rules: {
|
|
57
58
|
"import/no-anonymous-default-export": "off",
|
|
59
|
+
"import/no-default-export": "off",
|
|
58
60
|
},
|
|
59
61
|
},
|
|
60
62
|
],
|
|
61
63
|
// TODO: add jsPlugins for perfectionist and padding-line-between-statements + add React rules (such as set-state-in-effect) from React X https://github.com/oxc-project/oxc/issues/1022 + potentially https://github.com/es-tooling/eslint-plugin-depend/blob/main/docs/rules/ban-dependencies.md
|
|
62
64
|
plugins: [
|
|
65
|
+
// TODO: check perfectionist sorting here
|
|
63
66
|
"eslint",
|
|
64
67
|
"import",
|
|
65
68
|
"jsdoc",
|
|
@@ -79,8 +82,10 @@ export default defineConfig({
|
|
|
79
82
|
"import/exports-last": "off",
|
|
80
83
|
"import/group-exports": "off",
|
|
81
84
|
"import/max-dependencies": "off",
|
|
85
|
+
"import/no-dynamic-require": "off",
|
|
82
86
|
"import/no-named-export": "off",
|
|
83
87
|
"import/no-nodejs-modules": "off",
|
|
88
|
+
"import/no-relative-parent-imports": "off",
|
|
84
89
|
"import/prefer-default-export": "off",
|
|
85
90
|
"jsdoc/require-param-type": "off",
|
|
86
91
|
"jsdoc/require-property-type": "off",
|
|
@@ -89,10 +94,20 @@ export default defineConfig({
|
|
|
89
94
|
"max-lines": "off",
|
|
90
95
|
"max-lines-per-function": "off",
|
|
91
96
|
"max-statements": "off",
|
|
97
|
+
"nextjs/google-font-display": "error",
|
|
98
|
+
"nextjs/google-font-preconnect": "error",
|
|
99
|
+
"nextjs/no-sync-scripts": "error",
|
|
100
|
+
"nextjs/no-unwanted-polyfillio": "error",
|
|
101
|
+
"no-async-await": "off",
|
|
92
102
|
"no-continue": "off",
|
|
93
103
|
"no-magic-numbers": "off",
|
|
104
|
+
"no-optional-chaining": "off",
|
|
105
|
+
"no-rest-spread-properties": "off",
|
|
94
106
|
"no-ternary": "off",
|
|
95
107
|
"no-undef": "off",
|
|
108
|
+
"no-undefined": "off",
|
|
109
|
+
"no-use-before-define": "off",
|
|
110
|
+
"no-void": "off",
|
|
96
111
|
"no-warning-comments": "off",
|
|
97
112
|
"node/no-sync": "off",
|
|
98
113
|
"prefer-named-capture-group": "off",
|
|
@@ -102,7 +117,10 @@ export default defineConfig({
|
|
|
102
117
|
"strict-boolean-expressions": "off",
|
|
103
118
|
"typescript/consistent-return": "off",
|
|
104
119
|
"typescript/consistent-type-definitions": ["error", "type"],
|
|
120
|
+
"typescript/explicit-function-return-type": "off",
|
|
121
|
+
"typescript/explicit-module-boundary-types": "off",
|
|
105
122
|
"typescript/no-unsafe-type-assertion": "off",
|
|
106
123
|
"unicorn/filename-case": "off",
|
|
124
|
+
"unicorn/import-style": "off",
|
|
107
125
|
},
|
|
108
126
|
});
|
package/dist/index.js
CHANGED