npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2024 โ€“ย Pkg Stats / Ryan Hefner

eslint-config-react-native-ialoig

v1.0.1

Published

๐ŸŽจ ESLint configuration for React Native - made with ๐Ÿง  by ialoig

Downloads

2

Readme

eslint-config-react-native-ialoig github npm

Hi ๐Ÿ‘‹

this is an ESLint configuration for React Native developers

๐Ÿš€ Getting Started

Installation

    npm install eslint-config-react-native-ialoig

๐Ÿ“ Rules

indent

โ›”๏ธ error if not tabbed indentation

quotes

โš ๏ธ warning if not double

semi

โ›”๏ธ disallows semicolons as the end of statements

curly-spacing

โœ… require spaces between curly braces

sort-imports

โ›”๏ธ error if not correctly sorted
โœ… ignores the case-sensitivity of the imports local name
โœ… Ignores the sorting of import declaration statements
โœ… Do not ignores the member sorting within a multiple member import declaration
โœ… default member syntax sort order is:
    * `none` - import module without exported bindings
    * `all` - import all members provided by exported bindings
    * `multiple` - import multiple members
    * `single` - import single member

๐Ÿ”Œ Plugins

eslint-plugin-react-native

โœ… detect unused StyleSheet rules in React components
โœ… enforce using platform specific filenames when necessary
โœ… no inline styles in components. 
Styles should be separate from the view layout
โœ… detect color literals in styles. 
Color definitions should be stored in variables instead of hardcoding them inside styles
โœ… all strings should be wrapped with a Text component
โœ… no Single Element Style Arrays are allowed.
These cause unnecessary re-renders as each time the array's identity changes.

eslint-plugin-import

โœ… Ensure imports point to a file/module that can be resolved
โœ… Ensure named imports correspond to a named export in the remote file
โœ… Ensure imported namespaces contain dereferenced properties as they are dereferenced
โœ… Ensure a default export is present, given a default import
โœ… Enforce a convention in module import order
the order is as shown in the following example:

// 1. node "builtin" modules
import fs from 'fs';
import path from 'path';
// 2. "external" modules
import _ from 'lodash';
import chalk from 'chalk';
// 3. "internal" modules
// (if you have configured your path or webpack to handle your internal paths differently)
import foo from 'src/foo';
// 4. modules from a "parent" directory
import foo from '../foo';
import qux from '../../foo/qux';
// 5. "sibling" modules from the same or a sibling's directory
import bar from './bar';
import baz from './bar/baz';
// 6. "index" of the current directory
import main from './';

eslint-plugin-i18n-json

โœ… ICU Message syntax validation
โœ… linting of each JSON translation file
โœ… automatic case-sensitive ascending sort of all keys in the translation file
โœ… compare each translation file's key structure with a reference translation file to ensure consistency

VS Code configuration to auto fix

Create .vscode/settings.json

{
    "editor.formatOnSave": true,
    "eslint.run": "onSave",
    "eslint.alwaysShowStatus": true,
    "eslint.format.enable": true,
}

made with ๐Ÿง  by ialoig