5.0.1 • Published 5 years ago

@qlean/eslint-config-react-native v5.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

eslint-config-react-native

Установка

$ npm install -D @qlean/eslint-config-react-native

Использование

Нужно добавить extends: "@qlean/eslint-config-react-native" в .eslintrc

Мотивация

global-require

'global-require': 0

Конфликтует с механизмом require() Webpack и React Native, не имеет смысла вне NodeJS

react/jsx-filename-extension

'react/jsx-filename-extension': [2, { 'extensions': ['.js'] }]

Разрешено только расширение .js

react/destructuring-assignment

'react/destructuring-assignment': [2, 'always', { 'ignoreClassFields': true }]

Подзволяет игнорировать обязательную деструкцию при использования полей класса, например state