2.1.0 • Published 6 months ago

@playcanvas/eslint-config v2.1.0

Weekly downloads
683
License
MIT
Repository
github
Last release
6 months ago

PlayCanvas ESLint Config

ESLint configuration developed by the PlayCanvas team and leveraged by many PlayCanvas-related projects, including the PlayCanvas Engine. However, you can use it for any JavaScript-based project if you approve of the PlayCanvas coding style.

The configuration is defined in eslint.config.mjs. It configures ESLint's rules in a comprehensive manner, covering Possible Problems, Suggestions, and Formatting categories. It also includes additional plugins:

  • eslint-plugin-jsdoc: For JSDoc validation and enforcement
  • eslint-plugin-import: For import/export validation and ordering
  • eslint-plugin-regexp: For regular expression best practices

The configuration attempts to enable as many rules as possible, particularly those categorized as 'recommended' by ESLint, while maintaining practicality for real-world development.

Using this config in your own projects

  1. Install the package:
npm install --save-dev @playcanvas/eslint-config eslint
  1. Create an eslint.config.js file in your project root:
import playcanvasConfig from '@playcanvas/eslint-config';

export default [
    ...playcanvasConfig,
    // Your custom configurations here
];

Features

  • Full flat config format support for ESLint 8+
  • Comprehensive rule configuration
  • Support for ESM Script JSDoc tags used in PlayCanvas
  • Import ordering and validation
  • Strict JSDoc validation
  • Regular expression pattern enforcement

Requirements

  • ESLint 8 or later
  • Node.js 16 or later
2.0.7

12 months ago

2.0.9

9 months ago

2.0.8

12 months ago

2.1.0

6 months ago

2.0.3

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.6

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.7.3

1 year ago

1.7.2

1 year ago

1.7.4

1 year ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.10

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago