1.0.1 • Published 5 years ago

tslint-stencil v1.0.1

Weekly downloads
2,315
License
MIT
Repository
github
Last release
5 years ago

tslint-stencil

Adds stylistic tslint rules for Stencil projects

Getting started

Add the following line to your tslint.json file to enable the default ruleset (which follows the Stencil Style Guide)

{
  "extends": ["tslint-stencil/default"]
}

Alternatively, you can extend the bare package and enable each rule on a individual basis

{
  "extends": ["tslint-stencil"],
  "rules": {
    "host-data-precedes-render": true
  }
}

Rules

ban-prefix

Ensures that a Component's tag does not use any of the given prefixes.

component-member-order

Ensures that Component members are ordered consistently

components-per-file

Allows a maximum number of Components to be placed in a single file

decorated-member-style

Requires decorated class members to follow a consistent style (singleline or multiline)

lifecycle-order

Ensures that Component lifecycle methods are ordered consistently

require-prefix

Ensures that a Component's tag begins with the given prefix(es).

stencil-method-order

Ensures that Stencil methods (hostData, render) are ordered consistently

Contributing

Rules in the src/ directory must be camelCased and end in Rule. More information on developing custom tslint rules can be found on the tslint site

Before adding your custom rule, be sure to write a test for it. Then, you should be able to verify that it works by running:

npm run verify
1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-alpha.41

6 years ago

1.0.0-alpha.40

6 years ago

1.0.0-alpha.39

6 years ago

1.0.0-alpha.38

6 years ago

1.0.0-alpha.37

6 years ago

1.0.0-alpha.36

6 years ago

1.0.0-alpha.35

6 years ago

1.0.0-alpha.34

6 years ago

1.0.0-alpha.33

6 years ago

1.0.0-alpha.32

6 years ago

1.0.0-alpha.31

6 years ago

1.0.0-alpha.30

6 years ago

1.0.0-alpha.29

6 years ago

1.0.0-alpha.28

6 years ago

1.0.0-alpha.27

6 years ago

1.0.0-alpha.26

6 years ago

1.0.0-alpha.25

6 years ago

1.0.0-alpha.24

6 years ago

1.0.0-alpha.23

6 years ago

1.0.0-alpha.22

6 years ago

1.0.0-alpha.21

6 years ago

1.0.0-alpha.20

6 years ago

1.0.0-alpha.19

6 years ago

1.0.0-alpha.18

6 years ago

1.0.0-alpha.17

6 years ago

1.0.0-alpha.16

6 years ago

1.0.0-alpha.15

6 years ago

1.0.0-alpha.14

6 years ago

1.0.0-alpha.13

6 years ago

1.0.0-alpha.12

6 years ago

1.0.0-alpha.11

6 years ago

1.0.0-alpha.10

6 years ago

1.0.0-alpha.9

6 years ago

1.0.0-alpha.7

6 years ago

1.0.0-alpha.6

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago

0.1.3

6 years ago

0.1.3-beta.7

6 years ago

0.1.3-beta.6

6 years ago

0.1.3-beta.5

6 years ago

0.1.3-beta.4

6 years ago

0.1.3-beta.0

6 years ago

0.1.3-alpha.4

6 years ago

0.1.3-alpha.3

6 years ago

0.1.3-alpha.2

6 years ago

0.1.3-alpha.1

6 years ago

0.1.3-0

6 years ago

0.1.2-alpha

6 years ago

0.1.1-alpha

6 years ago

0.1.0-alpha

6 years ago