懒人记时 代码仓库
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

80 строки
1.5 KiB

2 лет назад
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. es2021: true,
  5. },
  6. extends: [
  7. 'plugin:react/recommended',
  8. 'airbnb',
  9. ],
  10. parserOptions: {
  11. ecmaFeatures: {
  12. jsx: true,
  13. },
  14. ecmaVersion: 12,
  15. sourceType: 'module',
  16. },
  17. plugins: [
  18. 'react',
  19. ],
  20. rules: {
  21. 'react/function-component-definition': 0,
  22. 'import/extensions': 0,
  23. 'react/prop-types': 0,
  24. 'linebreak-style': 0,
  25. 'react/state-in-constructor': 0,
  26. 'import/prefer-default-export': 0,
  27. 'max-len': [
  28. 2,
  29. 550,
  30. ],
  31. 'no-multiple-empty-lines': [
  32. 'error',
  33. {
  34. max: 1,
  35. maxEOF: 1,
  36. },
  37. ],
  38. 'no-underscore-dangle': [
  39. 'error',
  40. {
  41. allow: [
  42. '_d',
  43. '_dh',
  44. '_h',
  45. '_id',
  46. '_m',
  47. '_n',
  48. '_t',
  49. '_text',
  50. ],
  51. },
  52. ],
  53. 'object-curly-newline': 0,
  54. 'react/jsx-filename-extension': 0,
  55. 'react/jsx-one-expression-per-line': 0,
  56. 'jsx-a11y/click-events-have-key-events': 0,
  57. 'jsx-a11y/alt-text': 0,
  58. 'jsx-a11y/no-autofocus': 0,
  59. 'jsx-a11y/no-static-element-interactions': 0,
  60. 'react/no-array-index-key': 0,
  61. 'jsx-a11y/anchor-is-valid': [
  62. 'error',
  63. {
  64. components: [
  65. 'Link',
  66. ],
  67. specialLink: [
  68. 'to',
  69. 'hrefLeft',
  70. 'hrefRight',
  71. ],
  72. aspects: [
  73. 'noHref',
  74. 'invalidHref',
  75. 'preferButton',
  76. ],
  77. },
  78. ],
  79. },
  80. };