@solvro/config 1.0.4 → 1.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/dist/{chunk-4C4AR77R.js → chunk-62DEEFN2.js} +0 -17
- package/dist/eslint-config/cli.cjs +5155 -110
- package/dist/eslint-config/cli.js +5169 -126
- package/dist/eslint-config/index.cjs +408 -71846
- package/dist/eslint-config/index.d.cts +6600 -6201
- package/dist/eslint-config/index.d.ts +6600 -6201
- package/dist/eslint-config/index.js +185 -14516
- package/dist/eslint-config-prettier-ZT22JTBW.js +217 -0
- package/dist/prettier-config/index.js +1 -1
- package/package.json +21 -26
- package/dist/chunk-SND5ODI2.js +0 -20878
- package/dist/dist-2ZVVVZXY.js +0 -35994
- package/dist/eslint-plugin-react-refresh-MJ7ZDK5R.js +0 -258
@@ -0,0 +1,217 @@
|
|
1
|
+
import {
|
2
|
+
__commonJS,
|
3
|
+
init_esm_shims
|
4
|
+
} from "./chunk-62DEEFN2.js";
|
5
|
+
|
6
|
+
// node_modules/eslint-config-prettier/index.js
|
7
|
+
var require_eslint_config_prettier = __commonJS({
|
8
|
+
"node_modules/eslint-config-prettier/index.js"(exports, module) {
|
9
|
+
init_esm_shims();
|
10
|
+
var includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
|
11
|
+
var specialRule = 0;
|
12
|
+
module.exports = {
|
13
|
+
rules: {
|
14
|
+
// The following rules can be used in some cases. See the README for more
|
15
|
+
// information. These are marked with `0` instead of `"off"` so that a
|
16
|
+
// script can distinguish them. Note that there are a few more of these
|
17
|
+
// in the deprecated section below.
|
18
|
+
"curly": specialRule,
|
19
|
+
"no-unexpected-multiline": specialRule,
|
20
|
+
"@typescript-eslint/lines-around-comment": specialRule,
|
21
|
+
"@typescript-eslint/quotes": specialRule,
|
22
|
+
"babel/quotes": specialRule,
|
23
|
+
"unicorn/template-indent": specialRule,
|
24
|
+
"vue/html-self-closing": specialRule,
|
25
|
+
"vue/max-len": specialRule,
|
26
|
+
// The rest are rules that you never need to enable when using Prettier.
|
27
|
+
"@babel/object-curly-spacing": "off",
|
28
|
+
"@babel/semi": "off",
|
29
|
+
"@typescript-eslint/block-spacing": "off",
|
30
|
+
"@typescript-eslint/brace-style": "off",
|
31
|
+
"@typescript-eslint/comma-dangle": "off",
|
32
|
+
"@typescript-eslint/comma-spacing": "off",
|
33
|
+
"@typescript-eslint/func-call-spacing": "off",
|
34
|
+
"@typescript-eslint/indent": "off",
|
35
|
+
"@typescript-eslint/key-spacing": "off",
|
36
|
+
"@typescript-eslint/keyword-spacing": "off",
|
37
|
+
"@typescript-eslint/member-delimiter-style": "off",
|
38
|
+
"@typescript-eslint/no-extra-parens": "off",
|
39
|
+
"@typescript-eslint/no-extra-semi": "off",
|
40
|
+
"@typescript-eslint/object-curly-spacing": "off",
|
41
|
+
"@typescript-eslint/semi": "off",
|
42
|
+
"@typescript-eslint/space-before-blocks": "off",
|
43
|
+
"@typescript-eslint/space-before-function-paren": "off",
|
44
|
+
"@typescript-eslint/space-infix-ops": "off",
|
45
|
+
"@typescript-eslint/type-annotation-spacing": "off",
|
46
|
+
"babel/object-curly-spacing": "off",
|
47
|
+
"babel/semi": "off",
|
48
|
+
"flowtype/boolean-style": "off",
|
49
|
+
"flowtype/delimiter-dangle": "off",
|
50
|
+
"flowtype/generic-spacing": "off",
|
51
|
+
"flowtype/object-type-curly-spacing": "off",
|
52
|
+
"flowtype/object-type-delimiter": "off",
|
53
|
+
"flowtype/quotes": "off",
|
54
|
+
"flowtype/semi": "off",
|
55
|
+
"flowtype/space-after-type-colon": "off",
|
56
|
+
"flowtype/space-before-generic-bracket": "off",
|
57
|
+
"flowtype/space-before-type-colon": "off",
|
58
|
+
"flowtype/union-intersection-spacing": "off",
|
59
|
+
"react/jsx-child-element-spacing": "off",
|
60
|
+
"react/jsx-closing-bracket-location": "off",
|
61
|
+
"react/jsx-closing-tag-location": "off",
|
62
|
+
"react/jsx-curly-newline": "off",
|
63
|
+
"react/jsx-curly-spacing": "off",
|
64
|
+
"react/jsx-equals-spacing": "off",
|
65
|
+
"react/jsx-first-prop-new-line": "off",
|
66
|
+
"react/jsx-indent": "off",
|
67
|
+
"react/jsx-indent-props": "off",
|
68
|
+
"react/jsx-max-props-per-line": "off",
|
69
|
+
"react/jsx-newline": "off",
|
70
|
+
"react/jsx-one-expression-per-line": "off",
|
71
|
+
"react/jsx-props-no-multi-spaces": "off",
|
72
|
+
"react/jsx-tag-spacing": "off",
|
73
|
+
"react/jsx-wrap-multilines": "off",
|
74
|
+
"standard/array-bracket-even-spacing": "off",
|
75
|
+
"standard/computed-property-even-spacing": "off",
|
76
|
+
"standard/object-curly-even-spacing": "off",
|
77
|
+
"unicorn/empty-brace-spaces": "off",
|
78
|
+
"unicorn/no-nested-ternary": "off",
|
79
|
+
"unicorn/number-literal-case": "off",
|
80
|
+
"vue/array-bracket-newline": "off",
|
81
|
+
"vue/array-bracket-spacing": "off",
|
82
|
+
"vue/array-element-newline": "off",
|
83
|
+
"vue/arrow-spacing": "off",
|
84
|
+
"vue/block-spacing": "off",
|
85
|
+
"vue/block-tag-newline": "off",
|
86
|
+
"vue/brace-style": "off",
|
87
|
+
"vue/comma-dangle": "off",
|
88
|
+
"vue/comma-spacing": "off",
|
89
|
+
"vue/comma-style": "off",
|
90
|
+
"vue/dot-location": "off",
|
91
|
+
"vue/func-call-spacing": "off",
|
92
|
+
"vue/html-closing-bracket-newline": "off",
|
93
|
+
"vue/html-closing-bracket-spacing": "off",
|
94
|
+
"vue/html-end-tags": "off",
|
95
|
+
"vue/html-indent": "off",
|
96
|
+
"vue/html-quotes": "off",
|
97
|
+
"vue/key-spacing": "off",
|
98
|
+
"vue/keyword-spacing": "off",
|
99
|
+
"vue/max-attributes-per-line": "off",
|
100
|
+
"vue/multiline-html-element-content-newline": "off",
|
101
|
+
"vue/multiline-ternary": "off",
|
102
|
+
"vue/mustache-interpolation-spacing": "off",
|
103
|
+
"vue/no-extra-parens": "off",
|
104
|
+
"vue/no-multi-spaces": "off",
|
105
|
+
"vue/no-spaces-around-equal-signs-in-attribute": "off",
|
106
|
+
"vue/object-curly-newline": "off",
|
107
|
+
"vue/object-curly-spacing": "off",
|
108
|
+
"vue/object-property-newline": "off",
|
109
|
+
"vue/operator-linebreak": "off",
|
110
|
+
"vue/quote-props": "off",
|
111
|
+
"vue/script-indent": "off",
|
112
|
+
"vue/singleline-html-element-content-newline": "off",
|
113
|
+
"vue/space-in-parens": "off",
|
114
|
+
"vue/space-infix-ops": "off",
|
115
|
+
"vue/space-unary-ops": "off",
|
116
|
+
"vue/template-curly-spacing": "off",
|
117
|
+
...includeDeprecated && {
|
118
|
+
// Removed in version 0.10.0.
|
119
|
+
// https://eslint.org/docs/latest/rules/space-unary-word-ops
|
120
|
+
"space-unary-word-ops": "off",
|
121
|
+
// Removed in version 1.0.0.
|
122
|
+
// https://github.com/eslint/eslint/issues/1898
|
123
|
+
"generator-star": "off",
|
124
|
+
"no-comma-dangle": "off",
|
125
|
+
"no-reserved-keys": "off",
|
126
|
+
"no-space-before-semi": "off",
|
127
|
+
"no-wrap-func": "off",
|
128
|
+
"space-after-function-name": "off",
|
129
|
+
"space-before-function-parentheses": "off",
|
130
|
+
"space-in-brackets": "off",
|
131
|
+
// Removed in version 2.0.0.
|
132
|
+
// https://github.com/eslint/eslint/issues/5032
|
133
|
+
"no-arrow-condition": "off",
|
134
|
+
"space-after-keywords": "off",
|
135
|
+
"space-before-keywords": "off",
|
136
|
+
"space-return-throw-case": "off",
|
137
|
+
// Deprecated since version 3.3.0.
|
138
|
+
// https://eslint.org/docs/rules/no-spaced-func
|
139
|
+
"no-spaced-func": "off",
|
140
|
+
// Deprecated since version 4.0.0.
|
141
|
+
// https://github.com/eslint/eslint/pull/8286
|
142
|
+
"indent-legacy": "off",
|
143
|
+
// Deprecated since version 8.53.0.
|
144
|
+
// https://eslint.org/blog/2023/10/deprecating-formatting-rules/
|
145
|
+
"array-bracket-newline": "off",
|
146
|
+
"array-bracket-spacing": "off",
|
147
|
+
"array-element-newline": "off",
|
148
|
+
"arrow-parens": "off",
|
149
|
+
"arrow-spacing": "off",
|
150
|
+
"block-spacing": "off",
|
151
|
+
"brace-style": "off",
|
152
|
+
"comma-dangle": "off",
|
153
|
+
"comma-spacing": "off",
|
154
|
+
"comma-style": "off",
|
155
|
+
"computed-property-spacing": "off",
|
156
|
+
"dot-location": "off",
|
157
|
+
"eol-last": "off",
|
158
|
+
"func-call-spacing": "off",
|
159
|
+
"function-call-argument-newline": "off",
|
160
|
+
"function-paren-newline": "off",
|
161
|
+
"generator-star-spacing": "off",
|
162
|
+
"implicit-arrow-linebreak": "off",
|
163
|
+
"indent": "off",
|
164
|
+
"jsx-quotes": "off",
|
165
|
+
"key-spacing": "off",
|
166
|
+
"keyword-spacing": "off",
|
167
|
+
"linebreak-style": "off",
|
168
|
+
"lines-around-comment": specialRule,
|
169
|
+
"max-len": specialRule,
|
170
|
+
"max-statements-per-line": "off",
|
171
|
+
"multiline-ternary": "off",
|
172
|
+
"new-parens": "off",
|
173
|
+
"newline-per-chained-call": "off",
|
174
|
+
"no-confusing-arrow": specialRule,
|
175
|
+
"no-extra-parens": "off",
|
176
|
+
"no-extra-semi": "off",
|
177
|
+
"no-floating-decimal": "off",
|
178
|
+
"no-mixed-operators": specialRule,
|
179
|
+
"no-mixed-spaces-and-tabs": "off",
|
180
|
+
"no-multi-spaces": "off",
|
181
|
+
"no-multiple-empty-lines": "off",
|
182
|
+
"no-tabs": specialRule,
|
183
|
+
"no-trailing-spaces": "off",
|
184
|
+
"no-whitespace-before-property": "off",
|
185
|
+
"nonblock-statement-body-position": "off",
|
186
|
+
"object-curly-newline": "off",
|
187
|
+
"object-curly-spacing": "off",
|
188
|
+
"object-property-newline": "off",
|
189
|
+
"one-var-declaration-per-line": "off",
|
190
|
+
"operator-linebreak": "off",
|
191
|
+
"padded-blocks": "off",
|
192
|
+
"quote-props": "off",
|
193
|
+
"quotes": specialRule,
|
194
|
+
"rest-spread-spacing": "off",
|
195
|
+
"semi": "off",
|
196
|
+
"semi-spacing": "off",
|
197
|
+
"semi-style": "off",
|
198
|
+
"space-before-blocks": "off",
|
199
|
+
"space-before-function-paren": "off",
|
200
|
+
"space-in-parens": "off",
|
201
|
+
"space-infix-ops": "off",
|
202
|
+
"space-unary-ops": "off",
|
203
|
+
"switch-colon-spacing": "off",
|
204
|
+
"template-curly-spacing": "off",
|
205
|
+
"template-tag-spacing": "off",
|
206
|
+
"wrap-iife": "off",
|
207
|
+
"wrap-regex": "off",
|
208
|
+
"yield-star-spacing": "off",
|
209
|
+
// Deprecated since version 7.0.0.
|
210
|
+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
|
211
|
+
"react/jsx-space-before-closing": "off"
|
212
|
+
}
|
213
|
+
}
|
214
|
+
};
|
215
|
+
}
|
216
|
+
});
|
217
|
+
export default require_eslint_config_prettier();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@solvro/config",
|
3
|
-
"version": "1.0
|
3
|
+
"version": "1.1.0",
|
4
4
|
"description": "Solvro's engineering style guide",
|
5
5
|
"keywords": [
|
6
6
|
"eslint-config"
|
@@ -17,14 +17,14 @@
|
|
17
17
|
"type": "module",
|
18
18
|
"exports": {
|
19
19
|
"./eslint": {
|
20
|
+
"types": "./dist/eslint-config/index.d.ts",
|
20
21
|
"import": "./dist/eslint-config/index.js",
|
21
|
-
"require": "./dist/eslint-config/index.cjs"
|
22
|
-
"types": "./dist/eslint-config/index.d.ts"
|
22
|
+
"require": "./dist/eslint-config/index.cjs"
|
23
23
|
},
|
24
24
|
"./prettier": {
|
25
|
+
"types": "./dist/prettier-config/index.d.ts",
|
25
26
|
"import": "./dist/prettier-config/index.js",
|
26
|
-
"require": "./dist/prettier-config/index.cjs"
|
27
|
-
"types": "./dist/prettier-config/index.d.ts"
|
27
|
+
"require": "./dist/prettier-config/index.cjs"
|
28
28
|
}
|
29
29
|
},
|
30
30
|
"bin": {
|
@@ -55,64 +55,62 @@
|
|
55
55
|
"@clack/prompts": "^0.8.2",
|
56
56
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
57
57
|
"@eslint/markdown": "^6.2.1",
|
58
|
-
"@rushstack/eslint-patch": "^1.10.4",
|
59
|
-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
60
58
|
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
61
59
|
"@typescript-eslint/parser": "^8.16.0",
|
62
60
|
"@vitest/eslint-plugin": "^1.1.12",
|
63
61
|
"eslint-config-flat-gitignore": "^0.3.0",
|
64
|
-
"eslint-config-prettier": "^9.1.0",
|
65
62
|
"eslint-flat-config-utils": "^0.4.0",
|
66
|
-
"eslint-import-resolver-alias": "^1.1.2",
|
67
|
-
"eslint-import-resolver-typescript": "^3.6.3",
|
68
63
|
"eslint-merge-processors": "^0.1.0",
|
69
64
|
"eslint-plugin-antfu": "^2.7.0",
|
70
65
|
"eslint-plugin-command": "^0.2.6",
|
71
|
-
"eslint-plugin-import": "^
|
72
|
-
"eslint-plugin-jest": "^28.9.0",
|
66
|
+
"eslint-plugin-import-x": "^4.4.3",
|
73
67
|
"eslint-plugin-jsdoc": "^50.6.0",
|
74
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
75
68
|
"eslint-plugin-n": "^17.14.0",
|
76
69
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
77
70
|
"eslint-plugin-perfectionist": "^4.1.2",
|
78
|
-
"eslint-plugin-playwright": "^2.1.0",
|
79
71
|
"eslint-plugin-react": "^7.37.2",
|
80
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
81
72
|
"eslint-plugin-regexp": "^2.7.0",
|
82
|
-
"eslint-plugin-testing-library": "^7.0.0",
|
83
|
-
"eslint-plugin-tsdoc": "^0.4.0",
|
84
73
|
"eslint-plugin-unicorn": "^56.0.1",
|
85
74
|
"eslint-plugin-unused-imports": "^4.1.4",
|
86
75
|
"globals": "^15.12.0",
|
87
|
-
"
|
76
|
+
"local-pkg": "^0.5.1",
|
77
|
+
"picocolors": "^1.1.1",
|
88
78
|
"prettier-plugin-packagejson": "^2.5.6",
|
89
|
-
"prettier-plugin-tailwindcss": "^0.6.9"
|
90
|
-
"yargs": "^17.7.2"
|
79
|
+
"prettier-plugin-tailwindcss": "^0.6.9"
|
91
80
|
},
|
92
81
|
"devDependencies": {
|
93
82
|
"@commitlint/cli": "^19.6.0",
|
94
83
|
"@commitlint/config-conventional": "^19.6.0",
|
95
84
|
"@eslint-react/eslint-plugin": "^1.17.1",
|
96
85
|
"@eslint/config-inspector": "^0.5.6",
|
86
|
+
"@next/eslint-plugin-next": "^15.0.3",
|
97
87
|
"@semantic-release/git": "^10.0.1",
|
88
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
89
|
+
"@types/eslint-config-prettier": "^6.11.3",
|
90
|
+
"@types/node": "^22.10.1",
|
98
91
|
"@types/yargs": "^17.0.33",
|
99
92
|
"eslint": "^9.15.0",
|
100
|
-
"eslint-
|
93
|
+
"eslint-config-prettier": "^9.1.0",
|
101
94
|
"eslint-plugin-react-hooks": "^5.0.0",
|
102
95
|
"eslint-plugin-react-refresh": "^0.4.14",
|
103
96
|
"eslint-typegen": "^0.3.2",
|
104
97
|
"husky": "^9.1.7",
|
105
98
|
"jiti": "^2.4.1",
|
106
99
|
"lint-staged": "^15.2.10",
|
100
|
+
"parse-gitignore": "^2.0.0",
|
107
101
|
"prettier": "^3.4.1",
|
102
|
+
"react": "^18.3.1",
|
108
103
|
"semantic-release": "^24.2.0",
|
109
104
|
"tsup": "^8.3.5",
|
110
105
|
"tsx": "^4.19.2",
|
111
|
-
"typescript": "^5.7.2"
|
106
|
+
"typescript": "^5.7.2",
|
107
|
+
"yargs": "^17.7.2"
|
112
108
|
},
|
113
109
|
"peerDependencies": {
|
114
110
|
"@next/eslint-plugin-next": ">=12.3.0 <16.0.0-0",
|
115
|
-
"eslint": "
|
111
|
+
"eslint": "^9.10.0",
|
112
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
113
|
+
"eslint-plugin-react-refresh": "^0.4.4",
|
116
114
|
"prettier": ">=3.0.0 <4",
|
117
115
|
"typescript": ">=4.8.0 <6"
|
118
116
|
},
|
@@ -120,9 +118,6 @@
|
|
120
118
|
"@eslint-react/eslint-plugin": {
|
121
119
|
"optional": true
|
122
120
|
},
|
123
|
-
"@unocss/eslint-plugin": {
|
124
|
-
"optional": true
|
125
|
-
},
|
126
121
|
"eslint-plugin-react-hooks": {
|
127
122
|
"optional": true
|
128
123
|
},
|