@devapoo-dev/eslint-config 1.1.23 → 1.1.25
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/index.mjs +10 -5
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -215,7 +215,9 @@ export function createConfig(options, ...userConfigs) {
|
|
|
215
215
|
allowedPrefixes: ['GIVEN', 'WHEN', 'THEN', 'AND', 'BUT'],
|
|
216
216
|
},
|
|
217
217
|
],
|
|
218
|
-
|
|
218
|
+
...(options?.react && {
|
|
219
|
+
'react/no-create-ref': 'off',
|
|
220
|
+
}),
|
|
219
221
|
},
|
|
220
222
|
},
|
|
221
223
|
/**
|
|
@@ -237,11 +239,14 @@ export function createConfig(options, ...userConfigs) {
|
|
|
237
239
|
'no-unused-labels': 'off',
|
|
238
240
|
'no-unused-vars': 'off',
|
|
239
241
|
'prefer-const': 'warn',
|
|
240
|
-
'jsx-a11y/alt-text': 'off',
|
|
241
|
-
'jsx-a11y/anchor-has-content': 'off',
|
|
242
242
|
'prefer-let/prefer-let': 'off',
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
|
|
244
|
+
...(options?.react && {
|
|
245
|
+
'jsx-a11y/alt-text': 'off',
|
|
246
|
+
'jsx-a11y/anchor-has-content': 'off',
|
|
247
|
+
'react/jsx-no-comment-textnodes': 'off',
|
|
248
|
+
'react/jsx-no-undef': 'off',
|
|
249
|
+
}),
|
|
245
250
|
},
|
|
246
251
|
},
|
|
247
252
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devapoo-dev/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.25",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"peerDependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@antfu/eslint-config": "^8.2.0",
|
|
12
|
-
"@eslint-react/eslint-plugin": "^
|
|
12
|
+
"@eslint-react/eslint-plugin": "^3.0.0",
|
|
13
13
|
"eslint-config-prettier": "^10.1.8",
|
|
14
14
|
"eslint-plugin-check-file": "^3.3.1",
|
|
15
15
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"eslint": "^9",
|
|
22
22
|
"typescript": "^5",
|
|
23
|
-
"@devapoo-dev/prettier-config": "0.0.
|
|
24
|
-
"@devapoo-dev/tsconfig": "0.0.
|
|
23
|
+
"@devapoo-dev/prettier-config": "0.0.16",
|
|
24
|
+
"@devapoo-dev/tsconfig": "0.0.22"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"lint": "eslint .",
|