Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 818 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 818 Bytes

eslint-config-salesforce

Salesforce eslint configuration for all projects.

Usage

First install this package.

yarn add eslint-config-salesforce

Then extend this configuration in your own eslint file.

Here is an example using a .eslintrc.js file.

module.exports = {
  extends: ['eslint-config-salesforce'],
};

Because eslint requires all eslint packages locally, you must also install the following packages.

yarn add eslint eslint-plugin-import eslint-plugin-jsdoc

For Salesforce owned repositories, also extend eslint-config-salesforce-license;

Note: For typescript packages, use eslint-config-salesforce-typescript.