2.0.4 • Published 9 months ago

@prowise/eslint-config-linting-rules v2.0.4

Weekly downloads
-
License
UNLICENSED
Repository
bitbucket
Last release
9 months ago

Prowise linting rules

This repository contains the Prowise basic linting rules Rules are based on:

  • The Airbnb rule sets
  • The recommended rules of Eslint and the different plugins
  • Prowise Style Guide

What is this repository for?

  • Easy setup to all linting rules on a code repository

How to use

  • Install this package with npm install @prowise/eslint-config-linting-rules -D
  • Depending on the type of project, add the following line to your eslintrc file:
    • Plain javascript project: "extends": ["@prowise/eslint-config-linting-rules"],
    • Typescript project: "extends": ["@prowise/eslint-config-linting-rules/typescript"],
    • Node-typescript backend project: "extends": ["@prowise/eslint-config-linting-rules/backend"],
    • React-typescript frontend project: "extends": ["@prowise/eslint-config-linting-rules/frontend"],

Note: Don't forget to add the project to your parserOptions in the .eslintrc.js file for typescript projects!

Sample of a .eslintrc.js file:

module.exports = {
    extends: ["@prowise/eslint-config-linting-rules/frontend"],
    parserOptions: {
        project: "./tsconfig.json",
    },
};

Know issues

ESM extension rules

The esm-extensions/force-extensions rule might not work correctly when you use the path option in tsconfig.json. This has to do with the fact that the rule determines external packages by looking at the node_modules folder which cannot be found.

It is best NOT to use paths redirects.

Installing a new version

When trying to update the installed lining version by npm i -D "@prowise/eslint-config-linting-rules@latest you might get an error on a peer dependency. In this case you can uninstall the linter by npm uninstall "@prowise/eslint-config-linting-rules and reinstall it again with npm i -D "@prowise/eslint-config-linting-rules@latest

2.0.3

9 months ago

2.0.2

9 months ago

2.0.4

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.2.12

1 year ago

1.2.13

1 year ago

1.2.8

1 year ago

1.2.10

1 year ago

1.2.11

1 year ago

1.2.9

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.14

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago