@robinblomberg/eslint-config-robinblomberg 0.11.0-beta2 → 0.11.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/index.js +6 -6
- package/package.json +11 -12
- package/pnpm-lock.yaml +0 -1793
package/index.js
CHANGED
|
@@ -105,7 +105,7 @@ module.exports = {
|
|
|
105
105
|
'@typescript-eslint/init-declarations': off,
|
|
106
106
|
'@typescript-eslint/keyword-spacing': warn,
|
|
107
107
|
'@typescript-eslint/lines-between-class-members': [
|
|
108
|
-
|
|
108
|
+
off,
|
|
109
109
|
'always',
|
|
110
110
|
{
|
|
111
111
|
exceptAfterOverload: true,
|
|
@@ -352,7 +352,7 @@ module.exports = {
|
|
|
352
352
|
'@typescript-eslint/semi': [warn, 'always'],
|
|
353
353
|
'@typescript-eslint/space-before-function-paren': [warn, 'always'],
|
|
354
354
|
'@typescript-eslint/strict-boolean-expressions': off,
|
|
355
|
-
'@typescript-eslint/switch-exhaustiveness-check':
|
|
355
|
+
'@typescript-eslint/switch-exhaustiveness-check': warn,
|
|
356
356
|
'@typescript-eslint/triple-slash-reference': warn,
|
|
357
357
|
'@typescript-eslint/type-annotation-spacing': warn,
|
|
358
358
|
'@typescript-eslint/typedef': off,
|
|
@@ -909,7 +909,7 @@ module.exports = {
|
|
|
909
909
|
'jsdoc/no-bad-blocks': warn,
|
|
910
910
|
'jsdoc/no-defaults': warn,
|
|
911
911
|
'jsdoc/no-types': off,
|
|
912
|
-
//
|
|
912
|
+
// Disabled due to false positives when referring to a generic type from inside its function:
|
|
913
913
|
'jsdoc/no-undefined-types': [
|
|
914
914
|
off,
|
|
915
915
|
{
|
|
@@ -1074,7 +1074,7 @@ module.exports = {
|
|
|
1074
1074
|
'no-alert': off,
|
|
1075
1075
|
'no-array-constructor': warn,
|
|
1076
1076
|
'no-async-promise-executor': warn,
|
|
1077
|
-
'no-await-in-loop':
|
|
1077
|
+
'no-await-in-loop': off,
|
|
1078
1078
|
'no-bitwise': warn,
|
|
1079
1079
|
'no-buffer-constructor': warn,
|
|
1080
1080
|
'no-caller': warn,
|
|
@@ -1083,14 +1083,14 @@ module.exports = {
|
|
|
1083
1083
|
'no-compare-neg-zero': warn,
|
|
1084
1084
|
'no-cond-assign': warn,
|
|
1085
1085
|
'no-confusing-arrow': warn,
|
|
1086
|
-
'no-console': [
|
|
1086
|
+
'no-console': [off, { allow: ['debug', 'error', 'info', 'warn'] }],
|
|
1087
1087
|
'no-const-assign': warn,
|
|
1088
1088
|
'no-constant-condition': [warn, { checkLoops: false }],
|
|
1089
1089
|
'no-continue': warn,
|
|
1090
1090
|
'no-control-regex': off,
|
|
1091
1091
|
'no-debugger': warn,
|
|
1092
1092
|
'no-delete-var': warn,
|
|
1093
|
-
'no-div-regex':
|
|
1093
|
+
'no-div-regex': off,
|
|
1094
1094
|
'no-dupe-args': warn,
|
|
1095
1095
|
'no-dupe-class-members': warn,
|
|
1096
1096
|
'no-dupe-keys': warn,
|
package/package.json
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robinblomberg/eslint-config-robinblomberg",
|
|
3
|
-
"version": "0.11.0
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"author": "Robin Blomberg",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/RobinBlomberg/eslint-config
|
|
8
|
+
"url": "git+https://github.com/RobinBlomberg/eslint-config.git"
|
|
9
9
|
},
|
|
10
10
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/RobinBlomberg/eslint-config
|
|
11
|
+
"url": "https://github.com/RobinBlomberg/eslint-config/issues"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/RobinBlomberg/eslint-config#readme",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"lint": "eslint **/*.{js,ts}",
|
|
16
|
+
"lint:fix": "eslint **/*.{js,ts} --fix"
|
|
12
17
|
},
|
|
13
|
-
"homepage": "https://github.com/RobinBlomberg/eslint-config-robinblomberg#readme",
|
|
14
18
|
"dependencies": {
|
|
15
19
|
"@babel/core": "^7.17.7",
|
|
16
20
|
"@babel/eslint-parser": "^7.17.0",
|
|
@@ -25,12 +29,7 @@
|
|
|
25
29
|
"typescript": "^4.6.2"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
|
-
"@robinblomberg/eslint-config-robinblomberg": "
|
|
32
|
+
"@robinblomberg/eslint-config-robinblomberg": "0.11.0-beta2",
|
|
29
33
|
"@types/node": "*"
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
"lint": "eslint **/*.{js,ts}",
|
|
33
|
-
"lint:fix": "eslint **/*.{js,ts} --fix"
|
|
34
|
-
},
|
|
35
|
-
"readme": "# ESLint Config\r\n\r\n## Installation\r\n\r\n```\r\nnpm install --save-dev @robinblomberg/eslint-config-robinblomberg\r\n```\r\n\r\n## Configuration\r\n\r\nCreate a file called **.eslintrc.js** at the project root:\r\n\r\n```javascript\r\nmodule.exports = {\r\n extends: '@robinblomberg/robinblomberg'\r\n}\r\n```\r\n\r\n## NPM scripts\r\n\r\nAdd the following scripts to your package.json:\r\n\r\n```json\r\n{\r\n \"scripts\": {\r\n \"lint-scripts\": \"eslint \\\"**/*.{js,jsx,ts,tsx}\\\"\",\r\n \"lint-scripts-fix\": \"eslint \\\"**/*.{js,jsx,ts,tsx}\\\" --fix\",\r\n }\r\n}\r\n```\r\n\r\nAdjust the paths according to your project/file structure as necessary (e.g. `\"eslint \\\"lib/**/*.{ts,tsx}\\\"\"`).\r\n\r\nTo run a script, enter the following in your command line:\r\n\r\n```\r\nnpm run lint-scripts\r\n```\r\n\r\n## Formatting on Save\r\n\r\nWith this knowledge of ESLint messages in mind, we can modify VS Code to tell ESLint to fix any issues (mainly formatting) every time we save. To open the settings menu, click on the gear icon in the lower left, and then choose **Settings**.\r\n\r\nWithin the settings menu, search for eslint. In the results, you will see a checkbox for **ESLint: Auto Fix on Save**. Make sure this is checked:\r\n\r\n\r\n\r\nNow, save your JavaScript file. You should see some changes, including fewer squiggles.\r\n"
|
|
36
|
-
}
|
|
34
|
+
}
|
|
35
|
+
}
|