@dethdkn/ox-config 1.0.15 → 1.0.16
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/jsrules/antfu.json +16 -0
- package/jsrules/harlanzw-wrapper.js +3 -0
- package/jsrules/harlanzw.json +28 -0
- package/jsrules/nuxt.json +9 -0
- package/jsrules/regexp.json +65 -0
- package/jsrules/security.json +18 -0
- package/package.json +3 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsPlugins": ["eslint-plugin-antfu"],
|
|
3
|
+
"rules": {
|
|
4
|
+
"antfu/consistent-chaining": "error",
|
|
5
|
+
"antfu/consistent-list-newline": "error",
|
|
6
|
+
"antfu/curly": "off",
|
|
7
|
+
"antfu/if-newline": "off",
|
|
8
|
+
"antfu/import-dedupe": "error",
|
|
9
|
+
"antfu/indent-unindent": "off",
|
|
10
|
+
"antfu/no-import-dist": "error",
|
|
11
|
+
"antfu/no-import-node-modules-by-path": "error",
|
|
12
|
+
"antfu/no-top-level-await": "off",
|
|
13
|
+
"antfu/no-ts-export-equal": "error",
|
|
14
|
+
"antfu/top-level-function": "error"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsPlugins": [{ "name": "harlanzw", "specifier": "./harlanzw-wrapper.js" }],
|
|
3
|
+
"rules": {
|
|
4
|
+
"harlanzw/link-ascii-only": ["error", { "ignoreExternal": true }],
|
|
5
|
+
"harlanzw/link-lowercase": ["error", { "ignoreExternal": true }],
|
|
6
|
+
"harlanzw/link-no-double-slashes": ["error", { "ignoreExternal": true }],
|
|
7
|
+
"harlanzw/link-no-underscores": ["error", { "ignoreExternal": true }],
|
|
8
|
+
"harlanzw/link-no-whitespace": ["error", { "ignoreExternal": true }],
|
|
9
|
+
"harlanzw/link-require-descriptive-text": "off",
|
|
10
|
+
"harlanzw/link-require-href": "error",
|
|
11
|
+
"harlanzw/link-trailing-slash": "off",
|
|
12
|
+
"harlanzw/nuxt-await-navigate-to": "error",
|
|
13
|
+
"harlanzw/nuxt-no-random": "error",
|
|
14
|
+
"harlanzw/nuxt-no-redundant-import-meta": "error",
|
|
15
|
+
"harlanzw/nuxt-no-side-effects-in-async-data-handler": "error",
|
|
16
|
+
"harlanzw/nuxt-no-side-effects-in-setup": "error",
|
|
17
|
+
"harlanzw/nuxt-no-unsafe-date": "error",
|
|
18
|
+
"harlanzw/nuxt-prefer-navigate-to-over-router-push-replace": "error",
|
|
19
|
+
"harlanzw/nuxt-prefer-nuxt-link-over-router-link": "error",
|
|
20
|
+
"harlanzw/vue-no-faux-composables": "error",
|
|
21
|
+
"harlanzw/vue-no-nested-reactivity": "error",
|
|
22
|
+
"harlanzw/vue-no-passing-refs-as-props": "off",
|
|
23
|
+
"harlanzw/vue-no-reactive-destructuring": "error",
|
|
24
|
+
"harlanzw/vue-no-ref-access-in-templates": "error",
|
|
25
|
+
"harlanzw/vue-no-torefs-on-props": "error",
|
|
26
|
+
"harlanzw/vue-require-composable-prefix": "error"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsPlugins": ["eslint-plugin-regexp"],
|
|
3
|
+
"rules": {
|
|
4
|
+
"regexp/confusing-quantifier": ["warn"],
|
|
5
|
+
"regexp/control-character-escape": ["error"],
|
|
6
|
+
"regexp/match-any": ["error"],
|
|
7
|
+
"regexp/negation": ["error"],
|
|
8
|
+
"regexp/no-contradiction-with-assertion": ["error"],
|
|
9
|
+
"regexp/no-dupe-characters-character-class": ["error"],
|
|
10
|
+
"regexp/no-dupe-disjunctions": ["error"],
|
|
11
|
+
"regexp/no-empty-alternative": ["warn"],
|
|
12
|
+
"regexp/no-empty-capturing-group": ["error"],
|
|
13
|
+
"regexp/no-empty-character-class": ["error"],
|
|
14
|
+
"regexp/no-empty-group": ["error"],
|
|
15
|
+
"regexp/no-empty-lookarounds-assertion": ["error"],
|
|
16
|
+
"regexp/no-empty-string-literal": ["error"],
|
|
17
|
+
"regexp/no-escape-backspace": ["error"],
|
|
18
|
+
"regexp/no-extra-lookaround-assertions": ["error"],
|
|
19
|
+
"regexp/no-invalid-regexp": ["error"],
|
|
20
|
+
"regexp/no-invisible-character": ["error"],
|
|
21
|
+
"regexp/no-lazy-ends": ["warn"],
|
|
22
|
+
"regexp/no-legacy-features": ["error"],
|
|
23
|
+
"regexp/no-misleading-capturing-group": ["error"],
|
|
24
|
+
"regexp/no-misleading-unicode-character": ["error"],
|
|
25
|
+
"regexp/no-missing-g-flag": ["error"],
|
|
26
|
+
"regexp/no-non-standard-flag": ["error"],
|
|
27
|
+
"regexp/no-obscure-range": ["error"],
|
|
28
|
+
"regexp/no-optional-assertion": ["error"],
|
|
29
|
+
"regexp/no-potentially-useless-backreference": ["warn"],
|
|
30
|
+
"regexp/no-super-linear-backtracking": ["error"],
|
|
31
|
+
"regexp/no-trivially-nested-assertion": ["error"],
|
|
32
|
+
"regexp/no-trivially-nested-quantifier": ["error"],
|
|
33
|
+
"regexp/no-unused-capturing-group": ["error"],
|
|
34
|
+
"regexp/no-useless-assertions": ["error"],
|
|
35
|
+
"regexp/no-useless-backreference": ["error"],
|
|
36
|
+
"regexp/no-useless-character-class": ["error"],
|
|
37
|
+
"regexp/no-useless-dollar-replacements": ["error"],
|
|
38
|
+
"regexp/no-useless-escape": ["error"],
|
|
39
|
+
"regexp/no-useless-flag": ["warn"],
|
|
40
|
+
"regexp/no-useless-lazy": ["error"],
|
|
41
|
+
"regexp/no-useless-non-capturing-group": ["error"],
|
|
42
|
+
"regexp/no-useless-quantifier": ["error"],
|
|
43
|
+
"regexp/no-useless-range": ["error"],
|
|
44
|
+
"regexp/no-useless-set-operand": ["error"],
|
|
45
|
+
"regexp/no-useless-string-literal": ["error"],
|
|
46
|
+
"regexp/no-useless-two-nums-quantifier": ["error"],
|
|
47
|
+
"regexp/no-zero-quantifier": ["error"],
|
|
48
|
+
"regexp/optimal-lookaround-quantifier": ["warn"],
|
|
49
|
+
"regexp/optimal-quantifier-concatenation": ["error"],
|
|
50
|
+
"regexp/prefer-character-class": ["error"],
|
|
51
|
+
"regexp/prefer-d": ["error"],
|
|
52
|
+
"regexp/prefer-plus-quantifier": ["error"],
|
|
53
|
+
"regexp/prefer-predefined-assertion": ["error"],
|
|
54
|
+
"regexp/prefer-question-quantifier": ["error"],
|
|
55
|
+
"regexp/prefer-range": ["error"],
|
|
56
|
+
"regexp/prefer-set-operation": ["error"],
|
|
57
|
+
"regexp/prefer-star-quantifier": ["error"],
|
|
58
|
+
"regexp/prefer-unicode-codepoint-escapes": ["error"],
|
|
59
|
+
"regexp/prefer-w": ["error"],
|
|
60
|
+
"regexp/simplify-set-operations": ["error"],
|
|
61
|
+
"regexp/sort-flags": ["error"],
|
|
62
|
+
"regexp/strict": ["error"],
|
|
63
|
+
"regexp/use-ignore-case": ["error"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsPlugins": ["eslint-plugin-security"],
|
|
3
|
+
"rules": {
|
|
4
|
+
"security/detect-bidi-characters": ["warn"],
|
|
5
|
+
"security/detect-buffer-noassert": ["warn"],
|
|
6
|
+
"security/detect-child-process": ["warn"],
|
|
7
|
+
"security/detect-disable-mustache-escape": ["warn"],
|
|
8
|
+
"security/detect-eval-with-expression": ["warn"],
|
|
9
|
+
"security/detect-new-buffer": ["warn"],
|
|
10
|
+
"security/detect-no-csrf-before-method-override": ["warn"],
|
|
11
|
+
"security/detect-non-literal-fs-filename": ["warn"],
|
|
12
|
+
"security/detect-non-literal-regexp": ["warn"],
|
|
13
|
+
"security/detect-non-literal-require": ["warn"],
|
|
14
|
+
"security/detect-possible-timing-attacks": ["warn"],
|
|
15
|
+
"security/detect-pseudoRandomBytes": ["warn"],
|
|
16
|
+
"security/detect-unsafe-regex": ["warn"]
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dethdkn/ox-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "⚓ My Opinionated OX Config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxfmt",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
".oxfmtrc.json",
|
|
26
26
|
".oxlintrc.json",
|
|
27
|
-
"rules"
|
|
27
|
+
"rules",
|
|
28
|
+
"jsrules"
|
|
28
29
|
],
|
|
29
30
|
"type": "module",
|
|
30
31
|
"exports": {
|