9.9.10 • Published 3 months ago

@xola/jslint v9.9.10

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

ESLint Configuration

This repository serves as the source for all of Xola's ESLint configuration using XO, a pluggable ESLint wrapper. This package should be installed for every Xola React app

Required Script Commands

Add the following commands in the scripts section of your package.json

"scripts": {
    "xola-lint": "xola-lint",
    "lint": "xola-lint src",
    "lint:report": "xola-lint --reporter=json src > eslint_report.json && echo 'ESLint report saved to eslint_report.json'",
},

Run Tests

To run ESLint against your entire source just run

npm run lint

If you would like to run lint against a specific file then invoke the xola-lint directly:

npm run xola-lint -- src/components/Alert.jsx

Rules

This uses the XO package along with several ES Lint rule packages customized for Xola's needs. Additionally it will use our prettier configuration to validate other needs.

Files used:

  1. .xo-config.json Contains the core ESLint rules
  2. The prettier key in package.json contains the default prettier rules

Run npm run xola-lint --print-config .xo-config.json to see all the rules

Fixing

You can automatically fix several violations by running:

npm run xola-lint -- <directory> --fix
9.9.9

3 months ago

9.9.10

3 months ago

2.2.1

8 months ago

2.3.0

8 months ago

1.1.0

2 years ago

2.0.0-rc5

2 years ago

2.0.0-rc4

2 years ago

2.0.0-rc3

2 years ago

1.1.0-rc1

2 years ago

2.0.0-rc2

2 years ago

1.1.0-rc3

2 years ago

2.0.0-rc1

2 years ago

1.1.0-rc2

2 years ago

2.1.2

2 years ago

2.2.0

1 year ago

2.1.1

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

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