@robinblomberg/eslint-config-robinblomberg 0.11.0-beta1 → 0.12.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.
Files changed (3) hide show
  1. package/index.js +12 -11
  2. package/package.json +14 -15
  3. package/pnpm-lock.yaml +0 -1946
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
- warn,
108
+ off,
109
109
  'always',
110
110
  {
111
111
  exceptAfterOverload: true,
@@ -125,8 +125,9 @@ module.exports = {
125
125
  },
126
126
  },
127
127
  ],
128
+ // Disabled to due buggy ordering:
128
129
  '@typescript-eslint/member-ordering': [
129
- warn,
130
+ off,
130
131
  {
131
132
  default: [
132
133
  'signature',
@@ -227,7 +228,7 @@ module.exports = {
227
228
  '@typescript-eslint/no-confusing-non-null-assertion': warn,
228
229
  '@typescript-eslint/no-dupe-class-members': warn,
229
230
  '@typescript-eslint/no-dynamic-delete': off,
230
- '@typescript-eslint/no-empty-function': warn,
231
+ '@typescript-eslint/no-empty-function': off,
231
232
  '@typescript-eslint/no-empty-interface': warn,
232
233
  '@typescript-eslint/no-explicit-any': off,
233
234
  '@typescript-eslint/no-extra-non-null-assertion': warn,
@@ -351,7 +352,7 @@ module.exports = {
351
352
  '@typescript-eslint/semi': [warn, 'always'],
352
353
  '@typescript-eslint/space-before-function-paren': [warn, 'always'],
353
354
  '@typescript-eslint/strict-boolean-expressions': off,
354
- '@typescript-eslint/switch-exhaustiveness-check': off,
355
+ '@typescript-eslint/switch-exhaustiveness-check': warn,
355
356
  '@typescript-eslint/triple-slash-reference': warn,
356
357
  '@typescript-eslint/type-annotation-spacing': warn,
357
358
  '@typescript-eslint/typedef': off,
@@ -775,7 +776,7 @@ module.exports = {
775
776
  'comma-style': [warn, 'last'],
776
777
  complexity: off,
777
778
  'computed-property-spacing': [warn, 'never'],
778
- 'consistent-return': warn,
779
+ 'consistent-return': off,
779
780
  'consistent-this': warn,
780
781
  'constructor-super': warn,
781
782
  curly: [warn, 'all'],
@@ -908,7 +909,7 @@ module.exports = {
908
909
  'jsdoc/no-bad-blocks': warn,
909
910
  'jsdoc/no-defaults': warn,
910
911
  'jsdoc/no-types': off,
911
- // Disable due to false positives when referring to a generic type from inside its function:
912
+ // Disabled due to false positives when referring to a generic type from inside its function:
912
913
  'jsdoc/no-undefined-types': [
913
914
  off,
914
915
  {
@@ -1073,8 +1074,8 @@ module.exports = {
1073
1074
  'no-alert': off,
1074
1075
  'no-array-constructor': warn,
1075
1076
  'no-async-promise-executor': warn,
1076
- 'no-await-in-loop': warn,
1077
- 'no-bitwise': warn,
1077
+ 'no-await-in-loop': off,
1078
+ 'no-bitwise': off,
1078
1079
  'no-buffer-constructor': warn,
1079
1080
  'no-caller': warn,
1080
1081
  'no-case-declarations': warn,
@@ -1082,14 +1083,14 @@ module.exports = {
1082
1083
  'no-compare-neg-zero': warn,
1083
1084
  'no-cond-assign': warn,
1084
1085
  'no-confusing-arrow': warn,
1085
- 'no-console': [warn, { allow: ['debug', 'error', 'info', 'warn'] }],
1086
+ 'no-console': [off, { allow: ['debug', 'error', 'info', 'warn'] }],
1086
1087
  'no-const-assign': warn,
1087
1088
  'no-constant-condition': [warn, { checkLoops: false }],
1088
1089
  'no-continue': warn,
1089
1090
  'no-control-regex': off,
1090
1091
  'no-debugger': warn,
1091
1092
  'no-delete-var': warn,
1092
- 'no-div-regex': warn,
1093
+ 'no-div-regex': off,
1093
1094
  'no-dupe-args': warn,
1094
1095
  'no-dupe-class-members': warn,
1095
1096
  'no-dupe-keys': warn,
@@ -1197,7 +1198,7 @@ module.exports = {
1197
1198
  'no-shadow': warn,
1198
1199
  'no-shadow-restricted-names': warn,
1199
1200
  'no-sparse-arrays': warn,
1200
- 'no-sync': warn,
1201
+ 'no-sync': off,
1201
1202
  'no-tabs': warn,
1202
1203
  'no-template-curly-in-string': warn,
1203
1204
  'no-ternary': off,
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.11.0-beta1",
3
+ "version": "0.12.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-robinblomberg.git"
8
+ "url": "git+https://github.com/RobinBlomberg/eslint-config.git"
9
9
  },
10
10
  "bugs": {
11
- "url": "https://github.com/RobinBlomberg/eslint-config-robinblomberg/issues"
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",
@@ -21,16 +25,11 @@
21
25
  "eslint-plugin-jsdoc": "^38.0.4",
22
26
  "eslint-plugin-jsx-a11y": "^6.5.1",
23
27
  "eslint-plugin-react": "^7.29.4",
24
- "eslint-plugin-sort-keys": "^2.3.5"
25
- },
26
- "devDependencies": {
27
- "@robinblomberg/eslint-config-robinblomberg": "^0.10.0",
28
- "@types/node": "*",
28
+ "eslint-plugin-sort-keys": "^2.3.5",
29
29
  "typescript": "^4.6.2"
30
30
  },
31
- "scripts": {
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![VS Code Settings](./docs/images/mycmb9lgf1joqvp6r9jq.png)\r\n\r\nNow, save your JavaScript file. You should see some changes, including fewer squiggles.\r\n"
36
- }
31
+ "devDependencies": {
32
+ "@robinblomberg/eslint-config-robinblomberg": "0.11.0-beta2",
33
+ "@types/node": "*"
34
+ }
35
+ }