0.2.14 • Published 1 month ago

@pinnacle0/eslint-plugin v0.2.14

Weekly downloads
96
License
MIT
Repository
-
Last release
1 month ago

@pinnacle0/eslint-plugin

This package provides customized eslint rules for Pinnacle and a baseline config for react/typescript projects.

Usage

This package includes a config which wraps multiple other eslint plugins and presets.

For our config to work properly, @pinnacle0/eslint-plugin has to be installed along with all these plugins and presets ("peer dependencies").

  1. Install @pinnacle0/eslint-plugin and the required peer dependencies:

    $ pnpm install --dev \
      @pinnacle/eslint-plugin \
      eslint \
      @typescript-eslint/parser \
      @typescript-eslint/eslint-plugin \
      eslint-config-prettier \
      eslint-plugin-react \
      eslint-plugin-react-hooks \
      eslint-plugin-import \
      eslint-plugin-eslint-comments
  2. Create .eslintrc.js at the project root directory:

    module.exports = {
        extends: ["plugin:@pinnacle0/baseline"],
    };
  3. Add lint script to package.json:

    {
        // ...
        "scripts": {
            // ...
            "lint": "eslint --ext .js,.jsx,.ts,.tsx ."
        }
    }
  4. Run linter:

    $ pnpm lint

Upgrading

It is recommended to use the latest version of all packages.

  1. To upgrade, run (use arrow keys and space to select packages):

    $ pnpm up -iLr
  2. Commit your changes:

    $ git commit -am "Upgraded dependencies"
  3. Review the changes of pnpm-lock.yaml if they make sense, then commit your changes:

    $ git commit -a --amend --no-edit
0.2.14

1 month ago

0.2.13

2 months ago

0.2.12

4 months ago

0.2.11

8 months ago

0.2.10

9 months ago

0.2.9

10 months ago

0.2.7

11 months ago

0.2.6

12 months ago

0.2.8

11 months ago

0.2.5

1 year ago

0.2.3

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.2

1 year ago

0.1.35

1 year ago

0.1.36

1 year ago

0.2.0

1 year ago

0.1.34

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.30

2 years ago

0.1.29

2 years ago

0.1.28

2 years ago

0.1.27

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago