Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 733 Bytes

force-import-ta-component.md

File metadata and controls

44 lines (28 loc) · 733 Bytes

强制引入TA组件检测 (force-import-ta-component)

检测引入的组件是否是TA框架的组件

Rule Details

The following patterns are considered warnings:

import {TouchableWithoutFeedback} from 'react-native;
import TouchableWithoutFeedback from 'TouchableWithoutFeedback';
const {TouchableWithoutFeedback} = require('react-native');
const TouchableWithoutFeedback = require('TouchableWithoutFeedback');

The following patterns are not considered warnings:

import {TouchableWithoutFeedback} from 'TA';
const {TouchableWithoutFeedback} = require('TA');

Rule Options

When Not To Use It

"tachecker/force-import-ta-component": 0