1.2.6 • Published 4 years ago

@fast-js/eslint v1.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Конфиг ESLint

В файле .eslintrc.js для React-приложения в раздел extends добавляем новые presets

module.exports = {
    root: true,
    extends: [
        '< PATH_TO_PACKAGE >/config-eslint',
        '< PATH_TO_PACKAGE >/config-eslint/rules/react',
        '< PATH_TO_PACKAGE >/config-eslint/rules/react-hooks',
        '< PATH_TO_PACKAGE >/config-eslint/rules/prettier',
        '< PATH_TO_PACKAGE >/config-eslint/rules/jest',
    ],
};

ESLint + Typescript

В файле .eslintrc.js в раздел extends добавляем новые presets

module.exports = {
    root: true,
    extends: [
        '< PATH_TO_PACKAGE >/config-eslint',
        '< PATH_TO_PACKAGE >/config-eslint/rules/react',
        '< PATH_TO_PACKAGE >/config-eslint/rules/react-hooks',
        '< PATH_TO_PACKAGE >/config-eslint/rules/prettier',
        '< PATH_TO_PACKAGE >/config-eslint/rules/typescript',
        '< PATH_TO_PACKAGE >/config-eslint/rules/jest',
    ],
    parserOptions: {
        project: './tsconfig.json',
    },
};
1.2.6

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.18

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.11

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.0

4 years ago