@yonycalsin/eslint-plugin-import-sort
TypeScript icon, indicating that this package has built-in type declarations

5.4.4 • Public • Published

@yonycalsin/eslint-plugin-import-sort

NPM Version Package License NPM Downloads

Installation

# Using npm
npm install --save @yonycalsin/eslint-plugin-import-sort@latest

# Using yarn
yarn add @yonycalsin/eslint-plugin-import-sort@latest

Usage

eslintrc.js

Extending configs

// for react
{
    extends: ['plugin:@yonycalsin/import-sort/react']
}

// for node
{
    extends: ['plugin:@yonycalsin/import-sort/node']
}

Using rules

module.exports = {
  plugins: ['@yonycalsin/import-sort'],
  rules: {
    '@yonycalsin/import-sort/typescript-react-imports': 'error',
    '@yonycalsin/import-sort/typescript-react-exports': 'error',
  },
}

you can also customize the modules

'@yonycalsin/import-sort/typescript-react-imports': ['error', { modules: ["analytics", "screens", "utils"] }],

Stay in touch

License

@yonycalsin/eslint-plugin-import-sort under License.

Package Sidebar

Install

npm i @yonycalsin/eslint-plugin-import-sort

Weekly Downloads

7

Version

5.4.4

License

MIT

Unpacked Size

32.5 kB

Total Files

15

Last publish

Collaborators

  • yonycalsin