구축(deps-dev):eslint 설정을 6.15.0에서 7.0.0으로 업그레이드

6508 단어 fizz

묘사

6.15.0에서 7.0.0으로 요동eslint-config-prettier.
변경 로그
출처eslint-config-prettier's changelog.

버전 7.0.0(2020-12-05)

  • Changed: At least ESLint 7.0.0 is now required.

  • Changed: [arrow-body-style] and [prefer-arrow-callback] are no longer turned off by default. They only need to be turned off if you use [eslint-plugin-prettier]. If you do, add "prettier/prettier" to your "extends" array to turn them off again.

    {
      "extends": ["prettier", "prettier/prettier"],
      "plugins": ["prettier"],
      "rules": {
        "prettier/prettier": "error"
      }
    }
    

    Alternatively, update [eslint-plugin-prettier] to version 3.2.0 or later which automatically turns off these two rules in its "plugin:prettier/recommended" config.

    The CLI helper tool only warns about these rules if you have the "prettier/prettier" rule enabled for a file.

  • Changed: no-tabs is now a validatable rule. If you use it, you should enable allowIndentationTabs so that the rule works regardless of your Prettier config:

    {
      "rules": {
        "no-tabs": ["error", { "allowIndentationTabs": true }]
      }
    }
    
  • Changed: The CLI helper tool is now called just eslint-config-prettier instead of eslint-config-prettier-check. This is so that npx eslint-config-prettier always works regardless of whether you have already installed eslint-config-prettier or not: If you have, the local installation is used; if you haven’t, npx downloads a temporary copy.

  • Changed: The CLI helper tool no longer requires you to pipe the output of eslint --print-config to it. Instead, it does that automatically for you via ESLint API:s added in ESLint v7.

    Before:

    npx eslint --print-config index.js | npx eslint-config-prettier-check
    

    After:

    npx eslint-config-prettier index.js
    
  • Improved: The npm package is now 75% smaller.


언약
  • 068fd1b eslint 설정prettier v7.0.0
  • 4d7347a prettier/next
  • 로부터의 합병 요청#168
  • f0b8764 각종 청결
  • 0d0b1ac 필요에 따라 국부eslint
  • 를 고정한다
  • 7642c58 오류 메시지를 eslint 플러그인에 더 적합하게 하기
  • bc65d43 Pretter/Pretter가 닫히면
  • eslint 플러그인 Pretter 규칙을 경고하지 마십시오
  • dcba135 eslint 플러그인prettier
  • 로 이동한 문서 삭제
  • 4d08b84 npm 포장 사이즈 75% 감소
  • 8a4cdcf 다른 모든 플러그인
  • 처럼 eslint plugin prettier를 자신의 파일로 이동
  • 7867a9c 탭 없음을 검증 가능한 규칙으로 변환
  • compare view
  • 에서 볼 수 있는 추가 제출
    Dependabot compatibility score
    이 PR과의 충돌은 사용자가 직접 변경하지 않는 한 해결될 수 있습니다.주석@dependabot rebase을 사용하여 수동으로 재기준을 트리거할 수도 있습니다.
    신뢰성 명령 및 옵션
    이 PR에 의견을 달면 Cortebot 작업을 트리거할 수 있습니다.
    - "@relateot rebase"는 이 PR의 기초를 재설정합니다.
    - "@relateot recreate"는 이 PR을 다시 만들고 편집한 내용을 덮어씁니다.
    - "@cordenot merge"는 CI 전송 후 이 PR을 병합합니다.
    - "@relateot squash and merge"는 CI 전송 후 이 PR을 누르고 병합합니다.
    - "@Correlot cancel merge"는 이전에 요청한 병합을 취소하고 자동 병합을 차단합니다.
    - 이 PR이 종료되면 @Correlot Recover에서 다시 열립니다.
    - @CorrelotClose가 PR을 닫고 Correlott를 중지하고 다시 생성합니다.수동으로 닫아서 같은 결과를 얻을 수 있습니다

    토론 #1

    : 타다: 이 PR은 버전 1.2.0에 포함됩니다. 타다:
    이 버전은 다음 웹 사이트에서 사용할 수 있습니다.
    - npm package (@latest dist-tag)
    - GitHub release
    당신의 semantic-release 로봇: 소프트웨어 패키지: 로켓:

    좋은 웹페이지 즐겨찾기