.eslintrc.js 659 B

12345678910111213141516171819202122232425262728
  1. module.exports = {
  2. extends: ['eslint-config-mlt'],
  3. env: {
  4. browser: true
  5. },
  6. plugins: ['unicorn'],
  7. globals: {
  8. // 这里填入你的项目需要的全局变量
  9. // 这里值为 false 表示这个全局变量不允许被重新赋值,比如:
  10. // jQuery: false,
  11. // $: false
  12. },
  13. settings: {
  14. react: {
  15. version: 'detect'
  16. }
  17. },
  18. rules: {
  19. 'no-undef': 0,
  20. 'unicorn/filename-case': [
  21. 'error',
  22. {
  23. case: 'kebabCase',
  24. ignore: ['[a-z]{2}-[A-Z]{2}.ts', '^\\[\\S*\\].tsx']
  25. }
  26. ]
  27. }
  28. };