UNPKG

eslint-config-get-off-my-lawn

Version:

A highly opinionated, sharable config of ESLint rules to produce beautiful, readable JavaScript.

21 lines (17 loc) 510 B
const imprt = require('eslint-plugin-import/config/react-native'); const {reactNative} = require('./utils/dependencies'); const config = { env: { 'react-native/react-native': true, }, plugins: ['react-native'], rules: { 'react-native/no-single-element-style-arrays': 'error', 'react-native/no-unused-styles': 'error', 'react-native/sort-styles': 'error', }, settings: { ...imprt.settings, }, }; module.exports = reactNative ? config : {};