[ReactNative] 미사용 스타일을 ESLint로 감지하고 싶습니다.
                                            
                                                
                                                
                                                
                                                
                                                
                                                 1722 단어  reactnative자바스크립트ESLint
                    
배경
방법
eslint-plugin-react-native 사용
npm i -D eslint eslint-plugin-react eslint-plugin-react-native
# or
yarn add -D eslint eslint-plugin-react eslint-plugin-react-native
.eslintrc
{
  "env": {
    "react-native/react-native": true
  },
  "plugins": ["react", "react-native"],
  "rules": {
    "react-native/no-unused-styles": 2,
    "react-native/split-platform-components": 2,
    "react-native/no-inline-styles": 2,
    "react-native/no-color-literals": 2,
    "react-native/no-raw-text": 2
  }
}
no-unused-styles 그냥 OK 
                Reference
이 문제에 관하여([ReactNative] 미사용 스타일을 ESLint로 감지하고 싶습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ozaki25/items/59294d2f8a529e7e0e61텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)