0.0.10 • Published 7 months ago

eslint-plugin-ga-plugin v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

eslint-plugin-ga-plugin

Плагин для проверки импортов в архитектуре Feature Sliced Design

Установка

Сначала нужно установить ESLint

npm i eslint --save-dev

Далее, установите eslint-plugin-ga-plugin

npm install eslint-plugin-ga-plugin --save-dev

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

// .eslintrc.js
module.exports = {
  plugins: ["ga-plugin"],
  rules: {
    'ga-plugin/path-checker': ['error', { alias: '@' }],
    'ga-plugin/layer-imports': [
      'error',
      {
        alias: '@',
        ignoreImportPatterns: ['**/StoreProvider', '**/testing'],
      },
    ],
    'ga-plugin/public-api-imports': [
      'error',
      {
        alias: '@',
        testFilesPatterns: ['**/*.test.*', '**/*.story.*', '**/StoreDecorator.tsx'],
      },
    ],
  }
}
0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago