70 lines
8.7 KiB
JavaScript
70 lines
8.7 KiB
JavaScript
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
const rules = exports.rules = {
|
|
'no-unresolved': require('./rules/no-unresolved'),
|
|
'named': require('./rules/named'),
|
|
'default': require('./rules/default'),
|
|
'namespace': require('./rules/namespace'),
|
|
'no-namespace': require('./rules/no-namespace'),
|
|
'export': require('./rules/export'),
|
|
'no-mutable-exports': require('./rules/no-mutable-exports'),
|
|
'extensions': require('./rules/extensions'),
|
|
'no-restricted-paths': require('./rules/no-restricted-paths'),
|
|
'no-internal-modules': require('./rules/no-internal-modules'),
|
|
'group-exports': require('./rules/group-exports'),
|
|
'no-relative-parent-imports': require('./rules/no-relative-parent-imports'),
|
|
|
|
'no-self-import': require('./rules/no-self-import'),
|
|
'no-cycle': require('./rules/no-cycle'),
|
|
'no-named-default': require('./rules/no-named-default'),
|
|
'no-named-as-default': require('./rules/no-named-as-default'),
|
|
'no-named-as-default-member': require('./rules/no-named-as-default-member'),
|
|
'no-anonymous-default-export': require('./rules/no-anonymous-default-export'),
|
|
|
|
'no-commonjs': require('./rules/no-commonjs'),
|
|
'no-amd': require('./rules/no-amd'),
|
|
'no-duplicates': require('./rules/no-duplicates'),
|
|
'first': require('./rules/first'),
|
|
'max-dependencies': require('./rules/max-dependencies'),
|
|
'no-extraneous-dependencies': require('./rules/no-extraneous-dependencies'),
|
|
'no-absolute-path': require('./rules/no-absolute-path'),
|
|
'no-nodejs-modules': require('./rules/no-nodejs-modules'),
|
|
'no-webpack-loader-syntax': require('./rules/no-webpack-loader-syntax'),
|
|
'order': require('./rules/order'),
|
|
'newline-after-import': require('./rules/newline-after-import'),
|
|
'prefer-default-export': require('./rules/prefer-default-export'),
|
|
'no-default-export': require('./rules/no-default-export'),
|
|
'no-dynamic-require': require('./rules/no-dynamic-require'),
|
|
'unambiguous': require('./rules/unambiguous'),
|
|
'no-unassigned-import': require('./rules/no-unassigned-import'),
|
|
'no-useless-path-segments': require('./rules/no-useless-path-segments'),
|
|
'dynamic-import-chunkname': require('./rules/dynamic-import-chunkname'),
|
|
|
|
// export
|
|
'exports-last': require('./rules/exports-last'),
|
|
|
|
// metadata-based
|
|
'no-deprecated': require('./rules/no-deprecated'),
|
|
|
|
// deprecated aliases to rules
|
|
'imports-first': require('./rules/imports-first')
|
|
};
|
|
|
|
const configs = exports.configs = {
|
|
'recommended': require('../config/recommended'),
|
|
|
|
'errors': require('../config/errors'),
|
|
'warnings': require('../config/warnings'),
|
|
|
|
// shhhh... work in progress "secret" rules
|
|
'stage-0': require('../config/stage-0'),
|
|
|
|
// useful stuff for folks using various environments
|
|
'react': require('../config/react'),
|
|
'react-native': require('../config/react-native'),
|
|
'electron': require('../config/electron')
|
|
};
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbInJ1bGVzIiwicmVxdWlyZSIsImNvbmZpZ3MiXSwibWFwcGluZ3MiOiI7Ozs7O0FBQU8sTUFBTUEsd0JBQVE7QUFDbkIsbUJBQWlCQyxRQUFRLHVCQUFSLENBREU7QUFFbkIsV0FBU0EsUUFBUSxlQUFSLENBRlU7QUFHbkIsYUFBV0EsUUFBUSxpQkFBUixDQUhRO0FBSW5CLGVBQWFBLFFBQVEsbUJBQVIsQ0FKTTtBQUtuQixrQkFBZ0JBLFFBQVEsc0JBQVIsQ0FMRztBQU1uQixZQUFVQSxRQUFRLGdCQUFSLENBTlM7QUFPbkIsd0JBQXNCQSxRQUFRLDRCQUFSLENBUEg7QUFRbkIsZ0JBQWNBLFFBQVEsb0JBQVIsQ0FSSztBQVNuQix5QkFBdUJBLFFBQVEsNkJBQVIsQ0FUSjtBQVVuQix5QkFBdUJBLFFBQVEsNkJBQVIsQ0FWSjtBQVduQixtQkFBaUJBLFFBQVEsdUJBQVIsQ0FYRTtBQVluQixnQ0FBOEJBLFFBQVEsb0NBQ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