@robinblomberg/eslint-config-robinblomberg 0.34.2 → 0.34.3
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.d.ts.map +1 -1
- package/index.js +8 -4
- package/package.json +10 -8
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";AAyBA;;GAEG;AACH,sBAFU,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA+gDxC"}
|
package/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import typescriptEslintParser from '@typescript-eslint/parser';
|
|
|
4
4
|
import importPlugin from 'eslint-plugin-import';
|
|
5
5
|
import jsdocPlugin from 'eslint-plugin-jsdoc';
|
|
6
6
|
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
|
7
|
+
// @ts-expect-error - No published type declarations:
|
|
8
|
+
import noOnlyTestsPlugin from 'eslint-plugin-no-only-tests';
|
|
7
9
|
import reactPlugin from 'eslint-plugin-react';
|
|
8
10
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
9
11
|
import reactRefreshPlugin from 'eslint-plugin-react-refresh';
|
|
@@ -50,6 +52,7 @@ const config = [
|
|
|
50
52
|
plugins: {
|
|
51
53
|
import: importPlugin,
|
|
52
54
|
jsdoc: jsdocPlugin,
|
|
55
|
+
'no-only-tests': /** @type {any} */ (noOnlyTestsPlugin),
|
|
53
56
|
'sort-exports': /** @type {any} */ (sortExportsPlugin),
|
|
54
57
|
'sort-keys': /** @type {any} */ (sortKeysPlugin),
|
|
55
58
|
sonarjs: sonarjsPlugin,
|
|
@@ -215,7 +218,7 @@ const config = [
|
|
|
215
218
|
'no-cond-assign': warn,
|
|
216
219
|
'no-confusing-arrow': off,
|
|
217
220
|
'no-console': [off, { allow: ['debug', 'error', 'info', 'warn'] }],
|
|
218
|
-
'no-const-assign':
|
|
221
|
+
'no-const-assign': error,
|
|
219
222
|
'no-constant-condition': [warn, { checkLoops: false }],
|
|
220
223
|
'no-continue': off,
|
|
221
224
|
'no-control-regex': off,
|
|
@@ -666,7 +669,7 @@ const config = [
|
|
|
666
669
|
'unicorn/require-number-to-fixed-digits-argument': warn,
|
|
667
670
|
'unicorn/require-post-message-target-origin': warn,
|
|
668
671
|
'unicorn/string-content': off,
|
|
669
|
-
'unicorn/switch-case-braces':
|
|
672
|
+
'unicorn/switch-case-braces': [warn, 'always'],
|
|
670
673
|
'unicorn/template-indent': warn,
|
|
671
674
|
'unicorn/text-encoding-identifier-case': warn,
|
|
672
675
|
'unicorn/throw-new-error': warn,
|
|
@@ -1130,6 +1133,7 @@ const config = [
|
|
|
1130
1133
|
'jsdoc/require-jsdoc': off,
|
|
1131
1134
|
'no-empty-character-class': off,
|
|
1132
1135
|
'no-magic-numbers': off,
|
|
1136
|
+
'no-only-tests/no-only-tests': warn,
|
|
1133
1137
|
'no-sparse-arrays': off,
|
|
1134
1138
|
'sonarjs/no-duplicate-string': off,
|
|
1135
1139
|
'sort-keys': off,
|
|
@@ -1253,7 +1257,7 @@ const config = [
|
|
|
1253
1257
|
'react/jsx-closing-bracket-location': warn,
|
|
1254
1258
|
'react/jsx-closing-tag-location': warn,
|
|
1255
1259
|
'react/jsx-curly-brace-presence': [
|
|
1256
|
-
|
|
1260
|
+
off,
|
|
1257
1261
|
{ children: 'always', props: 'never' },
|
|
1258
1262
|
],
|
|
1259
1263
|
'react/jsx-curly-newline': off,
|
|
@@ -1282,7 +1286,7 @@ const config = [
|
|
|
1282
1286
|
'react/jsx-no-comment-textnodes': warn,
|
|
1283
1287
|
'react/jsx-no-constructed-context-values': warn,
|
|
1284
1288
|
'react/jsx-no-duplicate-props': warn,
|
|
1285
|
-
'react/jsx-no-literals':
|
|
1289
|
+
'react/jsx-no-literals': off,
|
|
1286
1290
|
'react/jsx-no-script-url': warn,
|
|
1287
1291
|
'react/jsx-no-target-blank': warn,
|
|
1288
1292
|
'react/jsx-no-undef': warn,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robinblomberg/eslint-config-robinblomberg",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.3",
|
|
4
4
|
"author": "Robin Blomberg",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -18,6 +18,13 @@
|
|
|
18
18
|
"url": "https://github.com/RobinBlomberg/eslint-config-robinblomberg/issues"
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/RobinBlomberg/eslint-config-robinblomberg#readme",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc -p tsconfig.build.json",
|
|
23
|
+
"lint": "eslint --no-error-on-unmatched-pattern **/*.{js,ts}",
|
|
24
|
+
"lint:fix": "eslint --no-error-on-unmatched-pattern **/*.{js,ts} --fix",
|
|
25
|
+
"prepack": "npm run build",
|
|
26
|
+
"typecheck": "tsc"
|
|
27
|
+
},
|
|
21
28
|
"dependencies": {
|
|
22
29
|
"@babel/core": "^8.0.1",
|
|
23
30
|
"@babel/eslint-parser": "^8.0.1",
|
|
@@ -26,6 +33,7 @@
|
|
|
26
33
|
"eslint-plugin-import": "^2.32.0",
|
|
27
34
|
"eslint-plugin-jsdoc": "^64.3.4",
|
|
28
35
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
36
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
29
37
|
"eslint-plugin-react": "^7.37.5",
|
|
30
38
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
31
39
|
"eslint-plugin-react-refresh": "^0.5.6",
|
|
@@ -48,11 +56,5 @@
|
|
|
48
56
|
"peerDependencies": {
|
|
49
57
|
"eslint": "^9.0.0",
|
|
50
58
|
"typescript": "^6.0.3"
|
|
51
|
-
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsc -p tsconfig.build.json",
|
|
54
|
-
"lint": "eslint --no-error-on-unmatched-pattern **/*.{js,ts}",
|
|
55
|
-
"lint:fix": "eslint --no-error-on-unmatched-pattern **/*.{js,ts} --fix",
|
|
56
|
-
"typecheck": "tsc"
|
|
57
59
|
}
|
|
58
|
-
}
|
|
60
|
+
}
|