1.0.45 • Published 1 year ago

uxp-linter-test-app v1.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

UXP LINTER

This project is useful for linting your code with ESLint rules and guidelines.

Installation (local)

For installing ESLint locally in your project you need to run below commands:

Installation (Global)

For installing globally you need to run below commands:

NPX

You can run npx command as well as mentioned below:

Project Linting (On Command Line or terminal)

For linting the project one need to run above script which has been added inside scripts object of your projects package.json file.
User can edit the script as per requirements.

Project Linting (Generating Report - By Default HTML Format)

For generating report one need to run the above script which has been added inside scripts object of your projects package.json.
User can change the format by replacing --format html option by mentioned values [checkstyle,codeframe,compact,html,jslint-xml,json-with-metadata,json,junit,stylish,table,tap,unix,visualstudio] in the script.

Fixing linting errors

For fixing linting errors one just need to run above command. We have added a script inside scripts tag in your projects package.json

Removing package

Description

After basic package installation user will be prompted if s/he is using Typescript.
For input as y or Y, an npm package named eslint-config-uxp-ts-linter will be installed.
For input as n or N, an npm package named eslint-config-uxp-es-linter will be installed.
Pressing any other key will abort the process and user will have to run the command again.
Changes will be done in various files namely: 1) package.json: This package will install dependency related to linting for Typescript. It will also include few scripts in "scripts" object of package.json
2) A file called .eslintrc.js will be generated which will be extending the linting package, also user can write his/er specific rules in this file under the rules object. User rules will be given preference over the installed package. 3) A backup file will be generated for package.json and any file including name like .eslintrc so that if the user wants to use his/er earlier package s/he can directly use the code from the backup file.

Note

ESLint version required >=6.x.x

1.0.19

1 year ago

1.0.18

1 year ago

1.0.39

1 year ago

1.0.17

1 year ago

1.0.38

1 year ago

1.0.40

1 year ago

1.0.44

1 year ago

1.0.22

1 year ago

1.0.43

1 year ago

1.0.21

1 year ago

1.0.42

1 year ago

1.0.20

1 year ago

1.0.41

1 year ago

1.0.26

1 year ago

1.0.24

1 year ago

1.0.45

1 year ago

1.0.23

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year 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

2 years ago

1.0.4

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.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago