index.js 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. 'no-self-import': require('./rules/no-self-import'),
  16. 'no-cycle': require('./rules/no-cycle'),
  17. 'no-named-default': require('./rules/no-named-default'),
  18. 'no-named-as-default': require('./rules/no-named-as-default'),
  19. 'no-named-as-default-member': require('./rules/no-named-as-default-member'),
  20. 'no-anonymous-default-export': require('./rules/no-anonymous-default-export'),
  21. 'no-unused-modules': require('./rules/no-unused-modules'),
  22. 'no-commonjs': require('./rules/no-commonjs'),
  23. 'no-amd': require('./rules/no-amd'),
  24. 'no-duplicates': require('./rules/no-duplicates'),
  25. 'first': require('./rules/first'),
  26. 'max-dependencies': require('./rules/max-dependencies'),
  27. 'no-extraneous-dependencies': require('./rules/no-extraneous-dependencies'),
  28. 'no-absolute-path': require('./rules/no-absolute-path'),
  29. 'no-nodejs-modules': require('./rules/no-nodejs-modules'),
  30. 'no-webpack-loader-syntax': require('./rules/no-webpack-loader-syntax'),
  31. 'order': require('./rules/order'),
  32. 'newline-after-import': require('./rules/newline-after-import'),
  33. 'prefer-default-export': require('./rules/prefer-default-export'),
  34. 'no-default-export': require('./rules/no-default-export'),
  35. 'no-named-export': require('./rules/no-named-export'),
  36. 'no-dynamic-require': require('./rules/no-dynamic-require'),
  37. 'unambiguous': require('./rules/unambiguous'),
  38. 'no-unassigned-import': require('./rules/no-unassigned-import'),
  39. 'no-useless-path-segments': require('./rules/no-useless-path-segments'),
  40. 'dynamic-import-chunkname': require('./rules/dynamic-import-chunkname'),
  41. 'no-import-module-exports': require('./rules/no-import-module-exports'),
  42. // export
  43. 'exports-last': require('./rules/exports-last'),
  44. // metadata-based
  45. 'no-deprecated': require('./rules/no-deprecated'),
  46. // deprecated aliases to rules
  47. 'imports-first': require('./rules/imports-first') };
  48. var configs = exports.configs = {
  49. 'recommended': require('../config/recommended'),
  50. 'errors': require('../config/errors'),
  51. 'warnings': require('../config/warnings'),
  52. // shhhh... work in progress "secret" rules
  53. 'stage-0': require('../config/stage-0'),
  54. // useful stuff for folks using various environments
  55. 'react': require('../config/react'),
  56. 'react-native': require('../config/react-native'),
  57. 'electron': require('../config/electron'),
  58. 'typescript': require('../config/typescript') };
  59. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJydWxlcyIsInJlcXVpcmUiLCJjb25maWdzIl0sIm1hcHBpbmdzIjoiMkVBQU8sSUFBTUEsd0JBQVE7QUFDbkIsbUJBQWlCQyxRQUFRLHVCQUFSLENBREU7QUFFbkIsV0FBU0EsUUFBUSxlQUFSLENBRlU7QUFHbkIsYUFBV0EsUUFBUSxpQkFBUixDQUhRO0FBSW5CLGVBQWFBLFFBQVEsbUJBQVIsQ0FKTTtBQUtuQixrQkFBZ0JBLFFBQVEsc0JBQVIsQ0FMRztBQU1uQixZQUFVQSxRQUFRLGdCQUFSLENBTlM7QUFPbkIsd0JBQXNCQSxRQUFRLDRCQUFSLENBUEg7QUFRbkIsZ0JBQWNBLFFBQVEsb0JBQVIsQ0FSSztBQVNuQix5QkFBdUJBLFFBQVEsNkJBQVIsQ0FUSjtBQVVuQix5QkFBdUJBLFFBQVEsNkJB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