index.js 10 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. 'use strict';Object.defineProperty(exports, "__esModule", { value: true });var rules = exports.rules = {
  2. 'no-unresolved': require('./rules/no-unresolved'),
  3. named: require('./rules/named'),
  4. 'default': require('./rules/default'),
  5. namespace: require('./rules/namespace'),
  6. 'no-namespace': require('./rules/no-namespace'),
  7. 'export': require('./rules/export'),
  8. 'no-mutable-exports': require('./rules/no-mutable-exports'),
  9. extensions: require('./rules/extensions'),
  10. 'no-restricted-paths': require('./rules/no-restricted-paths'),
  11. 'no-internal-modules': require('./rules/no-internal-modules'),
  12. 'group-exports': require('./rules/group-exports'),
  13. 'no-relative-packages': require('./rules/no-relative-packages'),
  14. 'no-relative-parent-imports': require('./rules/no-relative-parent-imports'),
  15. 'consistent-type-specifier-style': require('./rules/consistent-type-specifier-style'),
  16. 'no-self-import': require('./rules/no-self-import'),
  17. 'no-cycle': require('./rules/no-cycle'),
  18. 'no-named-default': require('./rules/no-named-default'),
  19. 'no-named-as-default': require('./rules/no-named-as-default'),
  20. 'no-named-as-default-member': require('./rules/no-named-as-default-member'),
  21. 'no-anonymous-default-export': require('./rules/no-anonymous-default-export'),
  22. 'no-unused-modules': require('./rules/no-unused-modules'),
  23. 'no-commonjs': require('./rules/no-commonjs'),
  24. 'no-amd': require('./rules/no-amd'),
  25. 'no-duplicates': require('./rules/no-duplicates'),
  26. first: require('./rules/first'),
  27. 'max-dependencies': require('./rules/max-dependencies'),
  28. 'no-extraneous-dependencies': require('./rules/no-extraneous-dependencies'),
  29. 'no-absolute-path': require('./rules/no-absolute-path'),
  30. 'no-nodejs-modules': require('./rules/no-nodejs-modules'),
  31. 'no-webpack-loader-syntax': require('./rules/no-webpack-loader-syntax'),
  32. order: require('./rules/order'),
  33. 'newline-after-import': require('./rules/newline-after-import'),
  34. 'prefer-default-export': require('./rules/prefer-default-export'),
  35. 'no-default-export': require('./rules/no-default-export'),
  36. 'no-named-export': require('./rules/no-named-export'),
  37. 'no-dynamic-require': require('./rules/no-dynamic-require'),
  38. unambiguous: require('./rules/unambiguous'),
  39. 'no-unassigned-import': require('./rules/no-unassigned-import'),
  40. 'no-useless-path-segments': require('./rules/no-useless-path-segments'),
  41. 'dynamic-import-chunkname': require('./rules/dynamic-import-chunkname'),
  42. 'no-import-module-exports': require('./rules/no-import-module-exports'),
  43. 'no-empty-named-blocks': require('./rules/no-empty-named-blocks'),
  44. // export
  45. 'exports-last': require('./rules/exports-last'),
  46. // metadata-based
  47. 'no-deprecated': require('./rules/no-deprecated'),
  48. // deprecated aliases to rules
  49. 'imports-first': require('./rules/imports-first') };
  50. var configs = exports.configs = {
  51. recommended: require('../config/recommended'),
  52. errors: require('../config/errors'),
  53. warnings: require('../config/warnings'),
  54. // shhhh... work in progress "secret" rules
  55. 'stage-0': require('../config/stage-0'),
  56. // useful stuff for folks using various environments
  57. react: require('../config/react'),
  58. 'react-native': require('../config/react-native'),
  59. electron: require('../config/electron'),
  60. typescript: require('../config/typescript') };
  61. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJydWxlcyIsInJlcXVpcmUiLCJuYW1lZCIsIm5hbWVzcGFjZSIsImV4dGVuc2lvbnMiLCJmaXJzdCIsIm9yZGVyIiwidW5hbWJpZ3VvdXMiLCJjb25maWdzIiwicmVjb21tZW5kZWQiLCJlcnJvcnMiLCJ3YXJuaW5ncyIsInJlYWN0IiwiZWxlY3Ryb24iLCJ0eXBlc2NyaXB0Il0sIm1hcHBpbmdzIjoiMkVBQU8sSUFBTUEsd0JBQVE7QUFDbkIsbUJBQWlCQyxRQUFRLHVCQUFSLENBREU7QUFFbkJDLFNBQU9ELFFBQVEsZUFBUixDQUZZO0FBR25CLGFBQVNBLFFBQVEsaUJBQVIsQ0FIVTtBQUluQkUsYUFBV0YsUUFBUSxtQkFBUixDQUpRO0FBS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