immosquare-cleaner 0.1.34 → 0.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +2 -2
  4. data/linters/eslint.config.mjs +30 -0
  5. data/linters/rubocop-3.2.2.yml +2 -0
  6. data/node_modules/function-bind/README.md +27 -25
  7. data/node_modules/function-bind/implementation.js +12 -44
  8. data/node_modules/function-bind/package.json +14 -38
  9. data/node_modules/is-core-module/CHANGELOG.md +0 -7
  10. data/node_modules/is-core-module/index.js +2 -2
  11. data/node_modules/is-core-module/package.json +4 -4
  12. data/package.json +2 -4
  13. metadata +3 -180
  14. data/linters/eslintrc.json +0 -57
  15. data/node_modules/.bin/rimraf +0 -1
  16. data/node_modules/eslint-config-airbnb-base/CHANGELOG.md +0 -374
  17. data/node_modules/eslint-config-airbnb-base/LICENSE.md +0 -21
  18. data/node_modules/eslint-config-airbnb-base/README.md +0 -112
  19. data/node_modules/eslint-config-airbnb-base/index.js +0 -17
  20. data/node_modules/eslint-config-airbnb-base/legacy.js +0 -34
  21. data/node_modules/eslint-config-airbnb-base/node_modules/semver/LICENSE +0 -15
  22. data/node_modules/eslint-config-airbnb-base/node_modules/semver/README.md +0 -443
  23. data/node_modules/eslint-config-airbnb-base/node_modules/semver/bin/semver.js +0 -174
  24. data/node_modules/eslint-config-airbnb-base/node_modules/semver/package.json +0 -38
  25. data/node_modules/eslint-config-airbnb-base/node_modules/semver/range.bnf +0 -16
  26. data/node_modules/eslint-config-airbnb-base/node_modules/semver/semver.js +0 -1643
  27. data/node_modules/eslint-config-airbnb-base/package.json +0 -95
  28. data/node_modules/eslint-config-airbnb-base/rules/best-practices.js +0 -408
  29. data/node_modules/eslint-config-airbnb-base/rules/errors.js +0 -179
  30. data/node_modules/eslint-config-airbnb-base/rules/es6.js +0 -185
  31. data/node_modules/eslint-config-airbnb-base/rules/imports.js +0 -273
  32. data/node_modules/eslint-config-airbnb-base/rules/node.js +0 -43
  33. data/node_modules/eslint-config-airbnb-base/rules/strict.js +0 -6
  34. data/node_modules/eslint-config-airbnb-base/rules/style.js +0 -529
  35. data/node_modules/eslint-config-airbnb-base/rules/variables.js +0 -56
  36. data/node_modules/eslint-config-airbnb-base/test/requires.js +0 -13
  37. data/node_modules/eslint-config-airbnb-base/test/test-base.js +0 -32
  38. data/node_modules/eslint-config-airbnb-base/whitespace-async.js +0 -96
  39. data/node_modules/eslint-config-airbnb-base/whitespace.js +0 -102
  40. data/node_modules/eslint-plugin-import/CHANGELOG.md +0 -1925
  41. data/node_modules/eslint-plugin-import/CONTRIBUTING.md +0 -84
  42. data/node_modules/eslint-plugin-import/LICENSE +0 -22
  43. data/node_modules/eslint-plugin-import/README.md +0 -500
  44. data/node_modules/eslint-plugin-import/RELEASE.md +0 -54
  45. data/node_modules/eslint-plugin-import/SECURITY.md +0 -11
  46. data/node_modules/eslint-plugin-import/config/electron.js +0 -8
  47. data/node_modules/eslint-plugin-import/config/errors.js +0 -14
  48. data/node_modules/eslint-plugin-import/config/react-native.js +0 -13
  49. data/node_modules/eslint-plugin-import/config/react.js +0 -18
  50. data/node_modules/eslint-plugin-import/config/recommended.js +0 -28
  51. data/node_modules/eslint-plugin-import/config/stage-0.js +0 -12
  52. data/node_modules/eslint-plugin-import/config/typescript.js +0 -34
  53. data/node_modules/eslint-plugin-import/config/warnings.js +0 -12
  54. data/node_modules/eslint-plugin-import/docs/rules/consistent-type-specifier-style.md +0 -91
  55. data/node_modules/eslint-plugin-import/docs/rules/default.md +0 -72
  56. data/node_modules/eslint-plugin-import/docs/rules/dynamic-import-chunkname.md +0 -92
  57. data/node_modules/eslint-plugin-import/docs/rules/export.md +0 -37
  58. data/node_modules/eslint-plugin-import/docs/rules/exports-last.md +0 -51
  59. data/node_modules/eslint-plugin-import/docs/rules/extensions.md +0 -174
  60. data/node_modules/eslint-plugin-import/docs/rules/first.md +0 -75
  61. data/node_modules/eslint-plugin-import/docs/rules/group-exports.md +0 -118
  62. data/node_modules/eslint-plugin-import/docs/rules/imports-first.md +0 -9
  63. data/node_modules/eslint-plugin-import/docs/rules/max-dependencies.md +0 -70
  64. data/node_modules/eslint-plugin-import/docs/rules/named.md +0 -102
  65. data/node_modules/eslint-plugin-import/docs/rules/namespace.md +0 -106
  66. data/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md +0 -167
  67. data/node_modules/eslint-plugin-import/docs/rules/no-absolute-path.md +0 -54
  68. data/node_modules/eslint-plugin-import/docs/rules/no-amd.md +0 -37
  69. data/node_modules/eslint-plugin-import/docs/rules/no-anonymous-default-export.md +0 -83
  70. data/node_modules/eslint-plugin-import/docs/rules/no-commonjs.md +0 -96
  71. data/node_modules/eslint-plugin-import/docs/rules/no-cycle.md +0 -111
  72. data/node_modules/eslint-plugin-import/docs/rules/no-default-export.md +0 -65
  73. data/node_modules/eslint-plugin-import/docs/rules/no-deprecated.md +0 -62
  74. data/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +0 -109
  75. data/node_modules/eslint-plugin-import/docs/rules/no-dynamic-require.md +0 -25
  76. data/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md +0 -49
  77. data/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +0 -139
  78. data/node_modules/eslint-plugin-import/docs/rules/no-import-module-exports.md +0 -81
  79. data/node_modules/eslint-plugin-import/docs/rules/no-internal-modules.md +0 -136
  80. data/node_modules/eslint-plugin-import/docs/rules/no-mutable-exports.md +0 -54
  81. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default-member.md +0 -52
  82. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default.md +0 -53
  83. data/node_modules/eslint-plugin-import/docs/rules/no-named-default.md +0 -36
  84. data/node_modules/eslint-plugin-import/docs/rules/no-named-export.md +0 -79
  85. data/node_modules/eslint-plugin-import/docs/rules/no-namespace.md +0 -44
  86. data/node_modules/eslint-plugin-import/docs/rules/no-nodejs-modules.md +0 -42
  87. data/node_modules/eslint-plugin-import/docs/rules/no-relative-packages.md +0 -70
  88. data/node_modules/eslint-plugin-import/docs/rules/no-relative-parent-imports.md +0 -123
  89. data/node_modules/eslint-plugin-import/docs/rules/no-restricted-paths.md +0 -198
  90. data/node_modules/eslint-plugin-import/docs/rules/no-self-import.md +0 -32
  91. data/node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md +0 -60
  92. data/node_modules/eslint-plugin-import/docs/rules/no-unresolved.md +0 -110
  93. data/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +0 -125
  94. data/node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md +0 -85
  95. data/node_modules/eslint-plugin-import/docs/rules/no-webpack-loader-syntax.md +0 -39
  96. data/node_modules/eslint-plugin-import/docs/rules/order.md +0 -365
  97. data/node_modules/eslint-plugin-import/docs/rules/prefer-default-export.md +0 -185
  98. data/node_modules/eslint-plugin-import/docs/rules/unambiguous.md +0 -57
  99. data/node_modules/eslint-plugin-import/lib/ExportMap.js +0 -856
  100. data/node_modules/eslint-plugin-import/lib/core/importType.js +0 -129
  101. data/node_modules/eslint-plugin-import/lib/core/packagePath.js +0 -22
  102. data/node_modules/eslint-plugin-import/lib/core/staticRequire.js +0 -11
  103. data/node_modules/eslint-plugin-import/lib/docsUrl.js +0 -8
  104. data/node_modules/eslint-plugin-import/lib/importDeclaration.js +0 -5
  105. data/node_modules/eslint-plugin-import/lib/index.js +0 -71
  106. data/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +0 -221
  107. data/node_modules/eslint-plugin-import/lib/rules/default.js +0 -40
  108. data/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +0 -120
  109. data/node_modules/eslint-plugin-import/lib/rules/export.js +0 -250
  110. data/node_modules/eslint-plugin-import/lib/rules/exports-last.js +0 -40
  111. data/node_modules/eslint-plugin-import/lib/rules/extensions.js +0 -193
  112. data/node_modules/eslint-plugin-import/lib/rules/first.js +0 -144
  113. data/node_modules/eslint-plugin-import/lib/rules/group-exports.js +0 -155
  114. data/node_modules/eslint-plugin-import/lib/rules/imports-first.js +0 -16
  115. data/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +0 -60
  116. data/node_modules/eslint-plugin-import/lib/rules/named.js +0 -143
  117. data/node_modules/eslint-plugin-import/lib/rules/namespace.js +0 -218
  118. data/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +0 -237
  119. data/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +0 -40
  120. data/node_modules/eslint-plugin-import/lib/rules/no-amd.js +0 -47
  121. data/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +0 -103
  122. data/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +0 -141
  123. data/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +0 -158
  124. data/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +0 -43
  125. data/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +0 -138
  126. data/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +0 -354
  127. data/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +0 -77
  128. data/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +0 -105
  129. data/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +0 -301
  130. data/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +0 -85
  131. data/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +0 -144
  132. data/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +0 -59
  133. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +0 -96
  134. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +0 -45
  135. data/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +0 -31
  136. data/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +0 -39
  137. data/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +0 -175
  138. data/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +0 -44
  139. data/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +0 -71
  140. data/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +0 -48
  141. data/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +0 -245
  142. data/node_modules/eslint-plugin-import/lib/rules/no-self-import.js +0 -39
  143. data/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +0 -79
  144. data/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js +0 -60
  145. data/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +0 -945
  146. data/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +0 -147
  147. data/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +0 -26
  148. data/node_modules/eslint-plugin-import/lib/rules/order.js +0 -785
  149. data/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +0 -116
  150. data/node_modules/eslint-plugin-import/lib/rules/unambiguous.js +0 -38
  151. data/node_modules/eslint-plugin-import/memo-parser/LICENSE +0 -22
  152. data/node_modules/eslint-plugin-import/memo-parser/README.md +0 -21
  153. data/node_modules/eslint-plugin-import/memo-parser/index.js +0 -41
  154. data/node_modules/eslint-plugin-import/node_modules/debug/CHANGELOG.md +0 -395
  155. data/node_modules/eslint-plugin-import/node_modules/debug/LICENSE +0 -19
  156. data/node_modules/eslint-plugin-import/node_modules/debug/README.md +0 -437
  157. data/node_modules/eslint-plugin-import/node_modules/debug/node.js +0 -1
  158. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/index.js +0 -162
  159. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/license.md +0 -21
  160. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/package.json +0 -38
  161. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/readme.md +0 -59
  162. data/node_modules/eslint-plugin-import/node_modules/debug/package.json +0 -51
  163. data/node_modules/eslint-plugin-import/node_modules/debug/src/browser.js +0 -180
  164. data/node_modules/eslint-plugin-import/node_modules/debug/src/common.js +0 -249
  165. data/node_modules/eslint-plugin-import/node_modules/debug/src/index.js +0 -12
  166. data/node_modules/eslint-plugin-import/node_modules/debug/src/node.js +0 -177
  167. data/node_modules/eslint-plugin-import/node_modules/doctrine/CHANGELOG.md +0 -94
  168. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE +0 -177
  169. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.closure-compiler +0 -202
  170. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.esprima +0 -19
  171. data/node_modules/eslint-plugin-import/node_modules/doctrine/README.md +0 -165
  172. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/doctrine.js +0 -899
  173. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/typed.js +0 -1305
  174. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/utility.js +0 -35
  175. data/node_modules/eslint-plugin-import/node_modules/doctrine/package.json +0 -57
  176. data/node_modules/eslint-plugin-import/node_modules/minimatch/LICENSE +0 -15
  177. data/node_modules/eslint-plugin-import/node_modules/minimatch/README.md +0 -230
  178. data/node_modules/eslint-plugin-import/node_modules/minimatch/minimatch.js +0 -947
  179. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  180. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  181. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  182. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  183. data/node_modules/eslint-plugin-import/node_modules/minimatch/package.json +0 -33
  184. data/node_modules/eslint-plugin-import/node_modules/semver/LICENSE +0 -15
  185. data/node_modules/eslint-plugin-import/node_modules/semver/README.md +0 -443
  186. data/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js +0 -174
  187. data/node_modules/eslint-plugin-import/node_modules/semver/package.json +0 -38
  188. data/node_modules/eslint-plugin-import/node_modules/semver/range.bnf +0 -16
  189. data/node_modules/eslint-plugin-import/node_modules/semver/semver.js +0 -1643
  190. data/node_modules/eslint-plugin-import/package.json +0 -124
  191. data/node_modules/function-bind/CHANGELOG.md +0 -136
@@ -1,95 +0,0 @@
1
- {
2
- "name": "eslint-config-airbnb-base",
3
- "version": "15.0.0",
4
- "description": "Airbnb's base JS ESLint config, following our styleguide",
5
- "main": "index.js",
6
- "exports": {
7
- ".": "./index.js",
8
- "./legacy": "./legacy.js",
9
- "./whitespace": "./whitespace.js",
10
- "./rules/best-practices": "./rules/best-practices.js",
11
- "./rules/es6": "./rules/es6.js",
12
- "./rules/node": "./rules/node.js",
13
- "./rules/style": "./rules/style.js",
14
- "./rules/errors": "./rules/errors.js",
15
- "./rules/imports": "./rules/imports.js",
16
- "./rules/strict": "./rules/strict.js",
17
- "./rules/variables": "./rules/variables.js",
18
- "./package.json": "./package.json"
19
- },
20
- "scripts": {
21
- "prelint": "eclint check * rules/* test/*",
22
- "lint": "eslint --report-unused-disable-directives .",
23
- "pretests-only": "node ./test/requires",
24
- "tests-only": "babel-tape-runner ./test/test-*.js",
25
- "prepublishOnly": "eslint-find-rules --unused && npm test && safe-publish-latest",
26
- "prepublish": "not-in-publish || npm run prepublishOnly",
27
- "pretest": "npm run --silent lint",
28
- "test": "npm run --silent tests-only",
29
- "pretravis": ":",
30
- "travis": "npm run --silent tests-only",
31
- "posttravis": ":"
32
- },
33
- "repository": {
34
- "type": "git",
35
- "url": "https://github.com/airbnb/javascript"
36
- },
37
- "keywords": [
38
- "eslint",
39
- "eslintconfig",
40
- "config",
41
- "airbnb",
42
- "javascript",
43
- "styleguide",
44
- "es2015",
45
- "es2016",
46
- "es2017",
47
- "es2018"
48
- ],
49
- "author": "Jake Teton-Landis (https://twitter.com/@jitl)",
50
- "contributors": [
51
- {
52
- "name": "Jake Teton-Landis",
53
- "url": "https://twitter.com/jitl"
54
- },
55
- {
56
- "name": "Jordan Harband",
57
- "email": "ljharb@gmail.com",
58
- "url": "http://ljharb.codes"
59
- },
60
- {
61
- "name": "Harrison Shoff",
62
- "url": "https://twitter.com/hshoff"
63
- }
64
- ],
65
- "license": "MIT",
66
- "bugs": {
67
- "url": "https://github.com/airbnb/javascript/issues"
68
- },
69
- "homepage": "https://github.com/airbnb/javascript",
70
- "devDependencies": {
71
- "@babel/runtime": "^7.16.0",
72
- "babel-preset-airbnb": "^4.5.0",
73
- "babel-tape-runner": "^3.0.0",
74
- "eclint": "^2.8.1",
75
- "eslint": "^7.32.0 || ^8.2.0",
76
- "eslint-find-rules": "^4.0.0",
77
- "eslint-plugin-import": "^2.25.2",
78
- "in-publish": "^2.0.1",
79
- "safe-publish-latest": "^2.0.0",
80
- "tape": "^5.3.1"
81
- },
82
- "peerDependencies": {
83
- "eslint": "^7.32.0 || ^8.2.0",
84
- "eslint-plugin-import": "^2.25.2"
85
- },
86
- "engines": {
87
- "node": "^10.12.0 || >=12.0.0"
88
- },
89
- "dependencies": {
90
- "confusing-browser-globals": "^1.0.10",
91
- "object.assign": "^4.1.2",
92
- "object.entries": "^1.1.5",
93
- "semver": "^6.3.0"
94
- }
95
- }
@@ -1,408 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- // enforces getter/setter pairs in objects
4
- // https://eslint.org/docs/rules/accessor-pairs
5
- 'accessor-pairs': 'off',
6
-
7
- // enforces return statements in callbacks of array's methods
8
- // https://eslint.org/docs/rules/array-callback-return
9
- 'array-callback-return': ['error', { allowImplicit: true }],
10
-
11
- // treat var statements as if they were block scoped
12
- // https://eslint.org/docs/rules/block-scoped-var
13
- 'block-scoped-var': 'error',
14
-
15
- // specify the maximum cyclomatic complexity allowed in a program
16
- // https://eslint.org/docs/rules/complexity
17
- complexity: ['off', 20],
18
-
19
- // enforce that class methods use "this"
20
- // https://eslint.org/docs/rules/class-methods-use-this
21
- 'class-methods-use-this': ['error', {
22
- exceptMethods: [],
23
- }],
24
-
25
- // require return statements to either always or never specify values
26
- // https://eslint.org/docs/rules/consistent-return
27
- 'consistent-return': 'error',
28
-
29
- // specify curly brace conventions for all control statements
30
- // https://eslint.org/docs/rules/curly
31
- curly: ['error', 'multi-line'], // multiline
32
-
33
- // require default case in switch statements
34
- // https://eslint.org/docs/rules/default-case
35
- 'default-case': ['error', { commentPattern: '^no default$' }],
36
-
37
- // Enforce default clauses in switch statements to be last
38
- // https://eslint.org/docs/rules/default-case-last
39
- 'default-case-last': 'error',
40
-
41
- // https://eslint.org/docs/rules/default-param-last
42
- 'default-param-last': 'error',
43
-
44
- // encourages use of dot notation whenever possible
45
- // https://eslint.org/docs/rules/dot-notation
46
- 'dot-notation': ['error', { allowKeywords: true }],
47
-
48
- // enforces consistent newlines before or after dots
49
- // https://eslint.org/docs/rules/dot-location
50
- 'dot-location': ['error', 'property'],
51
-
52
- // require the use of === and !==
53
- // https://eslint.org/docs/rules/eqeqeq
54
- eqeqeq: ['error', 'always', { null: 'ignore' }],
55
-
56
- // Require grouped accessor pairs in object literals and classes
57
- // https://eslint.org/docs/rules/grouped-accessor-pairs
58
- 'grouped-accessor-pairs': 'error',
59
-
60
- // make sure for-in loops have an if statement
61
- // https://eslint.org/docs/rules/guard-for-in
62
- 'guard-for-in': 'error',
63
-
64
- // enforce a maximum number of classes per file
65
- // https://eslint.org/docs/rules/max-classes-per-file
66
- 'max-classes-per-file': ['error', 1],
67
-
68
- // disallow the use of alert, confirm, and prompt
69
- // https://eslint.org/docs/rules/no-alert
70
- 'no-alert': 'warn',
71
-
72
- // disallow use of arguments.caller or arguments.callee
73
- // https://eslint.org/docs/rules/no-caller
74
- 'no-caller': 'error',
75
-
76
- // disallow lexical declarations in case/default clauses
77
- // https://eslint.org/docs/rules/no-case-declarations
78
- 'no-case-declarations': 'error',
79
-
80
- // Disallow returning value in constructor
81
- // https://eslint.org/docs/rules/no-constructor-return
82
- 'no-constructor-return': 'error',
83
-
84
- // disallow division operators explicitly at beginning of regular expression
85
- // https://eslint.org/docs/rules/no-div-regex
86
- 'no-div-regex': 'off',
87
-
88
- // disallow else after a return in an if
89
- // https://eslint.org/docs/rules/no-else-return
90
- 'no-else-return': ['error', { allowElseIf: false }],
91
-
92
- // disallow empty functions, except for standalone funcs/arrows
93
- // https://eslint.org/docs/rules/no-empty-function
94
- 'no-empty-function': ['error', {
95
- allow: [
96
- 'arrowFunctions',
97
- 'functions',
98
- 'methods',
99
- ]
100
- }],
101
-
102
- // disallow empty destructuring patterns
103
- // https://eslint.org/docs/rules/no-empty-pattern
104
- 'no-empty-pattern': 'error',
105
-
106
- // disallow comparisons to null without a type-checking operator
107
- // https://eslint.org/docs/rules/no-eq-null
108
- 'no-eq-null': 'off',
109
-
110
- // disallow use of eval()
111
- // https://eslint.org/docs/rules/no-eval
112
- 'no-eval': 'error',
113
-
114
- // disallow adding to native types
115
- // https://eslint.org/docs/rules/no-extend-native
116
- 'no-extend-native': 'error',
117
-
118
- // disallow unnecessary function binding
119
- // https://eslint.org/docs/rules/no-extra-bind
120
- 'no-extra-bind': 'error',
121
-
122
- // disallow Unnecessary Labels
123
- // https://eslint.org/docs/rules/no-extra-label
124
- 'no-extra-label': 'error',
125
-
126
- // disallow fallthrough of case statements
127
- // https://eslint.org/docs/rules/no-fallthrough
128
- 'no-fallthrough': 'error',
129
-
130
- // disallow the use of leading or trailing decimal points in numeric literals
131
- // https://eslint.org/docs/rules/no-floating-decimal
132
- 'no-floating-decimal': 'error',
133
-
134
- // disallow reassignments of native objects or read-only globals
135
- // https://eslint.org/docs/rules/no-global-assign
136
- 'no-global-assign': ['error', { exceptions: [] }],
137
-
138
- // deprecated in favor of no-global-assign
139
- // https://eslint.org/docs/rules/no-native-reassign
140
- 'no-native-reassign': 'off',
141
-
142
- // disallow implicit type conversions
143
- // https://eslint.org/docs/rules/no-implicit-coercion
144
- 'no-implicit-coercion': ['off', {
145
- boolean: false,
146
- number: true,
147
- string: true,
148
- allow: [],
149
- }],
150
-
151
- // disallow var and named functions in global scope
152
- // https://eslint.org/docs/rules/no-implicit-globals
153
- 'no-implicit-globals': 'off',
154
-
155
- // disallow use of eval()-like methods
156
- // https://eslint.org/docs/rules/no-implied-eval
157
- 'no-implied-eval': 'error',
158
-
159
- // disallow this keywords outside of classes or class-like objects
160
- // https://eslint.org/docs/rules/no-invalid-this
161
- 'no-invalid-this': 'off',
162
-
163
- // disallow usage of __iterator__ property
164
- // https://eslint.org/docs/rules/no-iterator
165
- 'no-iterator': 'error',
166
-
167
- // disallow use of labels for anything other than loops and switches
168
- // https://eslint.org/docs/rules/no-labels
169
- 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],
170
-
171
- // disallow unnecessary nested blocks
172
- // https://eslint.org/docs/rules/no-lone-blocks
173
- 'no-lone-blocks': 'error',
174
-
175
- // disallow creation of functions within loops
176
- // https://eslint.org/docs/rules/no-loop-func
177
- 'no-loop-func': 'error',
178
-
179
- // disallow magic numbers
180
- // https://eslint.org/docs/rules/no-magic-numbers
181
- 'no-magic-numbers': ['off', {
182
- ignore: [],
183
- ignoreArrayIndexes: true,
184
- enforceConst: true,
185
- detectObjects: false,
186
- }],
187
-
188
- // disallow use of multiple spaces
189
- // https://eslint.org/docs/rules/no-multi-spaces
190
- 'no-multi-spaces': ['error', {
191
- ignoreEOLComments: false,
192
- }],
193
-
194
- // disallow use of multiline strings
195
- // https://eslint.org/docs/rules/no-multi-str
196
- 'no-multi-str': 'error',
197
-
198
- // disallow use of new operator when not part of the assignment or comparison
199
- // https://eslint.org/docs/rules/no-new
200
- 'no-new': 'error',
201
-
202
- // disallow use of new operator for Function object
203
- // https://eslint.org/docs/rules/no-new-func
204
- 'no-new-func': 'error',
205
-
206
- // disallows creating new instances of String, Number, and Boolean
207
- // https://eslint.org/docs/rules/no-new-wrappers
208
- 'no-new-wrappers': 'error',
209
-
210
- // Disallow \8 and \9 escape sequences in string literals
211
- // https://eslint.org/docs/rules/no-nonoctal-decimal-escape
212
- 'no-nonoctal-decimal-escape': 'error',
213
-
214
- // disallow use of (old style) octal literals
215
- // https://eslint.org/docs/rules/no-octal
216
- 'no-octal': 'error',
217
-
218
- // disallow use of octal escape sequences in string literals, such as
219
- // var foo = 'Copyright \251';
220
- // https://eslint.org/docs/rules/no-octal-escape
221
- 'no-octal-escape': 'error',
222
-
223
- // disallow reassignment of function parameters
224
- // disallow parameter object manipulation except for specific exclusions
225
- // rule: https://eslint.org/docs/rules/no-param-reassign.html
226
- 'no-param-reassign': ['error', {
227
- props: true,
228
- ignorePropertyModificationsFor: [
229
- 'acc', // for reduce accumulators
230
- 'accumulator', // for reduce accumulators
231
- 'e', // for e.returnvalue
232
- 'ctx', // for Koa routing
233
- 'context', // for Koa routing
234
- 'req', // for Express requests
235
- 'request', // for Express requests
236
- 'res', // for Express responses
237
- 'response', // for Express responses
238
- '$scope', // for Angular 1 scopes
239
- 'staticContext', // for ReactRouter context
240
- ]
241
- }],
242
-
243
- // disallow usage of __proto__ property
244
- // https://eslint.org/docs/rules/no-proto
245
- 'no-proto': 'error',
246
-
247
- // disallow declaring the same variable more than once
248
- // https://eslint.org/docs/rules/no-redeclare
249
- 'no-redeclare': 'error',
250
-
251
- // disallow certain object properties
252
- // https://eslint.org/docs/rules/no-restricted-properties
253
- 'no-restricted-properties': ['error', {
254
- object: 'arguments',
255
- property: 'callee',
256
- message: 'arguments.callee is deprecated',
257
- }, {
258
- object: 'global',
259
- property: 'isFinite',
260
- message: 'Please use Number.isFinite instead',
261
- }, {
262
- object: 'self',
263
- property: 'isFinite',
264
- message: 'Please use Number.isFinite instead',
265
- }, {
266
- object: 'window',
267
- property: 'isFinite',
268
- message: 'Please use Number.isFinite instead',
269
- }, {
270
- object: 'global',
271
- property: 'isNaN',
272
- message: 'Please use Number.isNaN instead',
273
- }, {
274
- object: 'self',
275
- property: 'isNaN',
276
- message: 'Please use Number.isNaN instead',
277
- }, {
278
- object: 'window',
279
- property: 'isNaN',
280
- message: 'Please use Number.isNaN instead',
281
- }, {
282
- property: '__defineGetter__',
283
- message: 'Please use Object.defineProperty instead.',
284
- }, {
285
- property: '__defineSetter__',
286
- message: 'Please use Object.defineProperty instead.',
287
- }, {
288
- object: 'Math',
289
- property: 'pow',
290
- message: 'Use the exponentiation operator (**) instead.',
291
- }],
292
-
293
- // disallow use of assignment in return statement
294
- // https://eslint.org/docs/rules/no-return-assign
295
- 'no-return-assign': ['error', 'always'],
296
-
297
- // disallow redundant `return await`
298
- // https://eslint.org/docs/rules/no-return-await
299
- 'no-return-await': 'error',
300
-
301
- // disallow use of `javascript:` urls.
302
- // https://eslint.org/docs/rules/no-script-url
303
- 'no-script-url': 'error',
304
-
305
- // disallow self assignment
306
- // https://eslint.org/docs/rules/no-self-assign
307
- 'no-self-assign': ['error', {
308
- props: true,
309
- }],
310
-
311
- // disallow comparisons where both sides are exactly the same
312
- // https://eslint.org/docs/rules/no-self-compare
313
- 'no-self-compare': 'error',
314
-
315
- // disallow use of comma operator
316
- // https://eslint.org/docs/rules/no-sequences
317
- 'no-sequences': 'error',
318
-
319
- // restrict what can be thrown as an exception
320
- // https://eslint.org/docs/rules/no-throw-literal
321
- 'no-throw-literal': 'error',
322
-
323
- // disallow unmodified conditions of loops
324
- // https://eslint.org/docs/rules/no-unmodified-loop-condition
325
- 'no-unmodified-loop-condition': 'off',
326
-
327
- // disallow usage of expressions in statement position
328
- // https://eslint.org/docs/rules/no-unused-expressions
329
- 'no-unused-expressions': ['error', {
330
- allowShortCircuit: false,
331
- allowTernary: false,
332
- allowTaggedTemplates: false,
333
- }],
334
-
335
- // disallow unused labels
336
- // https://eslint.org/docs/rules/no-unused-labels
337
- 'no-unused-labels': 'error',
338
-
339
- // disallow unnecessary .call() and .apply()
340
- // https://eslint.org/docs/rules/no-useless-call
341
- 'no-useless-call': 'off',
342
-
343
- // Disallow unnecessary catch clauses
344
- // https://eslint.org/docs/rules/no-useless-catch
345
- 'no-useless-catch': 'error',
346
-
347
- // disallow useless string concatenation
348
- // https://eslint.org/docs/rules/no-useless-concat
349
- 'no-useless-concat': 'error',
350
-
351
- // disallow unnecessary string escaping
352
- // https://eslint.org/docs/rules/no-useless-escape
353
- 'no-useless-escape': 'error',
354
-
355
- // disallow redundant return; keywords
356
- // https://eslint.org/docs/rules/no-useless-return
357
- 'no-useless-return': 'error',
358
-
359
- // disallow use of void operator
360
- // https://eslint.org/docs/rules/no-void
361
- 'no-void': 'error',
362
-
363
- // disallow usage of configurable warning terms in comments: e.g. todo
364
- // https://eslint.org/docs/rules/no-warning-comments
365
- 'no-warning-comments': ['off', { terms: ['todo', 'fixme', 'xxx'], location: 'start' }],
366
-
367
- // disallow use of the with statement
368
- // https://eslint.org/docs/rules/no-with
369
- 'no-with': 'error',
370
-
371
- // require using Error objects as Promise rejection reasons
372
- // https://eslint.org/docs/rules/prefer-promise-reject-errors
373
- 'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],
374
-
375
- // Suggest using named capture group in regular expression
376
- // https://eslint.org/docs/rules/prefer-named-capture-group
377
- 'prefer-named-capture-group': 'off',
378
-
379
- // https://eslint.org/docs/rules/prefer-regex-literals
380
- 'prefer-regex-literals': ['error', {
381
- disallowRedundantWrapping: true,
382
- }],
383
-
384
- // require use of the second argument for parseInt()
385
- // https://eslint.org/docs/rules/radix
386
- radix: 'error',
387
-
388
- // require `await` in `async function` (note: this is a horrible rule that should never be used)
389
- // https://eslint.org/docs/rules/require-await
390
- 'require-await': 'off',
391
-
392
- // Enforce the use of u flag on RegExp
393
- // https://eslint.org/docs/rules/require-unicode-regexp
394
- 'require-unicode-regexp': 'off',
395
-
396
- // requires to declare all vars on top of their containing scope
397
- // https://eslint.org/docs/rules/vars-on-top
398
- 'vars-on-top': 'error',
399
-
400
- // require immediate function invocation to be wrapped in parentheses
401
- // https://eslint.org/docs/rules/wrap-iife.html
402
- 'wrap-iife': ['error', 'outside', { functionPrototypeMethods: false }],
403
-
404
- // require or disallow Yoda conditions
405
- // https://eslint.org/docs/rules/yoda
406
- yoda: 'error'
407
- }
408
- };
@@ -1,179 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- // Enforce “for” loop update clause moving the counter in the right direction
4
- // https://eslint.org/docs/rules/for-direction
5
- 'for-direction': 'error',
6
-
7
- // Enforces that a return statement is present in property getters
8
- // https://eslint.org/docs/rules/getter-return
9
- 'getter-return': ['error', { allowImplicit: true }],
10
-
11
- // disallow using an async function as a Promise executor
12
- // https://eslint.org/docs/rules/no-async-promise-executor
13
- 'no-async-promise-executor': 'error',
14
-
15
- // Disallow await inside of loops
16
- // https://eslint.org/docs/rules/no-await-in-loop
17
- 'no-await-in-loop': 'error',
18
-
19
- // Disallow comparisons to negative zero
20
- // https://eslint.org/docs/rules/no-compare-neg-zero
21
- 'no-compare-neg-zero': 'error',
22
-
23
- // disallow assignment in conditional expressions
24
- 'no-cond-assign': ['error', 'always'],
25
-
26
- // disallow use of console
27
- 'no-console': 'warn',
28
-
29
- // disallow use of constant expressions in conditions
30
- 'no-constant-condition': 'warn',
31
-
32
- // disallow control characters in regular expressions
33
- 'no-control-regex': 'error',
34
-
35
- // disallow use of debugger
36
- 'no-debugger': 'error',
37
-
38
- // disallow duplicate arguments in functions
39
- 'no-dupe-args': 'error',
40
-
41
- // Disallow duplicate conditions in if-else-if chains
42
- // https://eslint.org/docs/rules/no-dupe-else-if
43
- 'no-dupe-else-if': 'error',
44
-
45
- // disallow duplicate keys when creating object literals
46
- 'no-dupe-keys': 'error',
47
-
48
- // disallow a duplicate case label.
49
- 'no-duplicate-case': 'error',
50
-
51
- // disallow empty statements
52
- 'no-empty': 'error',
53
-
54
- // disallow the use of empty character classes in regular expressions
55
- 'no-empty-character-class': 'error',
56
-
57
- // disallow assigning to the exception in a catch block
58
- 'no-ex-assign': 'error',
59
-
60
- // disallow double-negation boolean casts in a boolean context
61
- // https://eslint.org/docs/rules/no-extra-boolean-cast
62
- 'no-extra-boolean-cast': 'error',
63
-
64
- // disallow unnecessary parentheses
65
- // https://eslint.org/docs/rules/no-extra-parens
66
- 'no-extra-parens': ['off', 'all', {
67
- conditionalAssign: true,
68
- nestedBinaryExpressions: false,
69
- returnAssign: false,
70
- ignoreJSX: 'all', // delegate to eslint-plugin-react
71
- enforceForArrowConditionals: false,
72
- }],
73
-
74
- // disallow unnecessary semicolons
75
- 'no-extra-semi': 'error',
76
-
77
- // disallow overwriting functions written as function declarations
78
- 'no-func-assign': 'error',
79
-
80
- // https://eslint.org/docs/rules/no-import-assign
81
- 'no-import-assign': 'error',
82
-
83
- // disallow function or variable declarations in nested blocks
84
- 'no-inner-declarations': 'error',
85
-
86
- // disallow invalid regular expression strings in the RegExp constructor
87
- 'no-invalid-regexp': 'error',
88
-
89
- // disallow irregular whitespace outside of strings and comments
90
- 'no-irregular-whitespace': 'error',
91
-
92
- // Disallow Number Literals That Lose Precision
93
- // https://eslint.org/docs/rules/no-loss-of-precision
94
- 'no-loss-of-precision': 'error',
95
-
96
- // Disallow characters which are made with multiple code points in character class syntax
97
- // https://eslint.org/docs/rules/no-misleading-character-class
98
- 'no-misleading-character-class': 'error',
99
-
100
- // disallow the use of object properties of the global object (Math and JSON) as functions
101
- 'no-obj-calls': 'error',
102
-
103
- // Disallow returning values from Promise executor functions
104
- // https://eslint.org/docs/rules/no-promise-executor-return
105
- 'no-promise-executor-return': 'error',
106
-
107
- // disallow use of Object.prototypes builtins directly
108
- // https://eslint.org/docs/rules/no-prototype-builtins
109
- 'no-prototype-builtins': 'error',
110
-
111
- // disallow multiple spaces in a regular expression literal
112
- 'no-regex-spaces': 'error',
113
-
114
- // Disallow returning values from setters
115
- // https://eslint.org/docs/rules/no-setter-return
116
- 'no-setter-return': 'error',
117
-
118
- // disallow sparse arrays
119
- 'no-sparse-arrays': 'error',
120
-
121
- // Disallow template literal placeholder syntax in regular strings
122
- // https://eslint.org/docs/rules/no-template-curly-in-string
123
- 'no-template-curly-in-string': 'error',
124
-
125
- // Avoid code that looks like two expressions but is actually one
126
- // https://eslint.org/docs/rules/no-unexpected-multiline
127
- 'no-unexpected-multiline': 'error',
128
-
129
- // disallow unreachable statements after a return, throw, continue, or break statement
130
- 'no-unreachable': 'error',
131
-
132
- // Disallow loops with a body that allows only one iteration
133
- // https://eslint.org/docs/rules/no-unreachable-loop
134
- 'no-unreachable-loop': ['error', {
135
- ignore: [], // WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement
136
- }],
137
-
138
- // disallow return/throw/break/continue inside finally blocks
139
- // https://eslint.org/docs/rules/no-unsafe-finally
140
- 'no-unsafe-finally': 'error',
141
-
142
- // disallow negating the left operand of relational operators
143
- // https://eslint.org/docs/rules/no-unsafe-negation
144
- 'no-unsafe-negation': 'error',
145
-
146
- // disallow use of optional chaining in contexts where the undefined value is not allowed
147
- // https://eslint.org/docs/rules/no-unsafe-optional-chaining
148
- 'no-unsafe-optional-chaining': ['error', { disallowArithmeticOperators: true }],
149
-
150
- // Disallow Unused Private Class Members
151
- // https://eslint.org/docs/rules/no-unused-private-class-members
152
- // TODO: enable once eslint 7 is dropped (which is semver-major)
153
- 'no-unused-private-class-members': 'off',
154
-
155
- // Disallow useless backreferences in regular expressions
156
- // https://eslint.org/docs/rules/no-useless-backreference
157
- 'no-useless-backreference': 'error',
158
-
159
- // disallow negation of the left operand of an in expression
160
- // deprecated in favor of no-unsafe-negation
161
- 'no-negated-in-lhs': 'off',
162
-
163
- // Disallow assignments that can lead to race conditions due to usage of await or yield
164
- // https://eslint.org/docs/rules/require-atomic-updates
165
- // note: not enabled because it is very buggy
166
- 'require-atomic-updates': 'off',
167
-
168
- // disallow comparisons with the value NaN
169
- 'use-isnan': 'error',
170
-
171
- // ensure JSDoc comments are valid
172
- // https://eslint.org/docs/rules/valid-jsdoc
173
- 'valid-jsdoc': 'off',
174
-
175
- // ensure that the results of typeof are compared against a valid string
176
- // https://eslint.org/docs/rules/valid-typeof
177
- 'valid-typeof': ['error', { requireStringLiterals: true }],
178
- }
179
- };