1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. "use strict";
  2. /**
  3. * @license
  4. * Copyright 2016 Palantir Technologies, Inc.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. Object.defineProperty(exports, "__esModule", { value: true });
  19. // tslint:disable object-literal-sort-keys
  20. // tslint:disable:object-literal-key-quotes
  21. exports.rules = {
  22. // added in v5.1
  23. "align": {
  24. options: [
  25. "parameters",
  26. "statements",
  27. "members",
  28. ],
  29. },
  30. "no-invalid-template-strings": true,
  31. "no-sparse-arrays": true,
  32. // added in v5.2
  33. "no-object-literal-type-assertion": true,
  34. // added in v5.3
  35. "prefer-conditional-expression": true,
  36. "prefer-object-spread": true,
  37. // added in v5.4
  38. "no-duplicate-variable": [
  39. true,
  40. "check-parameters",
  41. ],
  42. // added in v5.5
  43. "no-this-assignment": true,
  44. // added in v5.6
  45. "no-duplicate-imports": true,
  46. "space-within-parens": [true, 0],
  47. "no-submodule-imports": true,
  48. // added in v5.7
  49. "whitespace": {
  50. options: [
  51. "check-branch",
  52. "check-decl",
  53. "check-operator",
  54. "check-separator",
  55. "check-type",
  56. "check-typecast",
  57. "check-type-operator",
  58. "check-rest-spread",
  59. ],
  60. },
  61. // added in v5.8
  62. "ban-comma-operator": true,
  63. "jsdoc-format": {
  64. options: "check-multiline-start",
  65. },
  66. "no-duplicate-switch-case": true,
  67. "no-implicit-dependencies": true,
  68. "no-return-await": true,
  69. };
  70. // tslint:enable object-literal-sort-keys
  71. // work around "extends" being a keyword
  72. var xtends = "tslint:recommended";
  73. exports.extends = xtends;