index.js 815 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. const configAll = require('./configs/all');
  3. const configRecommended = require('./configs/recommended');
  4. const configRuntime = require('./configs/jsx-runtime');
  5. const allRules = require('./lib/rules');
  6. // for legacy config system
  7. const plugins = [
  8. 'react',
  9. ];
  10. module.exports = {
  11. deprecatedRules: configAll.plugins.react.deprecatedRules,
  12. rules: allRules,
  13. configs: {
  14. recommended: Object.assign({}, configRecommended, {
  15. parserOptions: configRecommended.languageOptions.parserOptions,
  16. plugins,
  17. }),
  18. all: Object.assign({}, configAll, {
  19. parserOptions: configAll.languageOptions.parserOptions,
  20. plugins,
  21. }),
  22. 'jsx-runtime': Object.assign({}, configRuntime, {
  23. parserOptions: configRuntime.languageOptions.parserOptions,
  24. plugins,
  25. }),
  26. },
  27. };