open-index/open-npm huggingface dataset:
npm package: @salesforce/eslint-plugin-lightning
Description: Collection of ESLint rules for Salesforce Lightning platform
Latest version: 2.0.0

# @salesforce/eslint-plugin-lightning

> Collection of ESLint rules for Salesforce Lightning platform.

## Installation

```sh
$ npm install eslint @salesforce/eslint-plugin-lightning --save-dev
```

## Usage

Import this plugin to your ESLint configuration file and apply your desired configuration. See [ESLint documentation](http://eslint.org/docs/user-guide/configuring#configuring-plugins) for details.

```js
// eslint.config.js
const pluginLightning = require('@salesforce/eslint-plugin-lightning');

module.exports = [
    {
        'plugins': {
            '@salesforce/lightning':  pluginLightning,
        }
        'rules': {
            '@salesforce/lightning/no-moment': 'error',
            '@salesforce/lightning/prefer-i18n-service': 'error'
        }
    }
]
```

## Rules

### Internationalization rules

| Rule ID                                                                                | Description                                                             | Fixable |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------- |
| [lightning/no-aura-localization-service](./docs/rules/no-aura-localization-service.md) | prevent usage of `$A.localizationService`                               |         |
| [lightning/no-moment](./docs/rules/no-moment.md)                                       | prevent usage of `moment` library                                       |         |
| [lightning/prefer-i18n-service](./docs/rules/prefer-i18n-service.md)                   | suggest usage of `@salesforce/i18n-service` over direct calls to `Intl` |         |

### Apex rules

| Rule ID                                                                                | Description                                            | Fixable |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------ | ------- |
| [lightning/valid-apex-method-invocation](./docs/rules/valid-apex-method-invocation.md) | enforce invoking Apex methods with the right arguments |         |
npm package: @salesforce/eslint-plugin-lwc-mobile
Description: ESLint plugin for LWC mobility
Latest version: 1.2.0

# @salesforce/eslint-plugin-lwc-mobile

## Installation

To add this plugin to your package/project, install it with your favorite Node.js package manager.

### yarn

```sh
$ yarn add --dev @salesforce/eslint-plugin-lwc-mobile
```

### npm

```sh
$ npm install --save-dev @salesforce/eslint-plugin-lwc-mobile
```

## Configuration

### ESLint &gt;= 9

The default configurations are now in the flat config format supported by ESLint 9 and beyond. To include `recommendedConfigs ` in your flat config, spread it into your configuration array. Note that `recommendedConfigs` is a collection of preset configs and must be expanded accordingly.:

```javascript
// eslint.config.mjs
import js from '@eslint/js';
import lwcMobilePlugin from "@salesforce/eslint-plugin-lwc-mobile";

export default [
    { plugins: { "@salesforce/lwc-mobile": lwcMobilePlugin } },
    js.configs.recommended,
    ...lwcMobilePlugin.recommendedConfigs,
];
```

### ESLint &lt; 9
Configurations for legacy ESLint have moved to `-legacy` extensions. Here's an example snippet of a `.eslintrc.json` configuration file, that will configure the `eslint-plugin-lwc-mobile` plugin. Extending the `plugin:@salesforce/lwc-mobile/recommended-legacy` ESLint configuration will enable static analysis on all `.js` files used in your Lightning web components.

```json
{
    "extends": ["eslint:recommended", "plugin:@salesforce/lwc-mobile/recommended-legacy"]
}
```
npm package: @salesforce/evergreen-base
Description: Salesforce SFDX Evergreen base for CLI development
Author: heroku-front-end@salesforce.com
Latest version: 0.8.0

Salesforce SFDX Evergreen base for CLI development
========

Note: This feature is in beta and has been released early so we can collect feedback. It may contain significant problems, undergo major changes, or be discontinued. The use of this feature is governed by the [Salesforce.com Program Agreement](https://trailblazer.me/terms?lan=en).

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@heroku/evergreen-base.svg)](https://npmjs.org/package/@heroku/evergreen-base)
[![CircleCI](https://circleci.com/gh/heroku/evergreen-base/tree/master.svg?style=shield)](https://circleci.com/gh/heroku/evergreen-base/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/heroku/evergreen-base?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/evergreen-base/branch/master)
[![Codecov](https://codecov.io/gh/heroku/evergreen-base/branch/master/graph/badge.svg)](https://codecov.io/gh/heroku/evergreen-base)
[![Downloads/week](https://img.shields.io/npm/dw/@heroku/evergreen-base.svg)](https://npmjs.org/package/@heroku/evergreen-base)
[![License](https://img.shields.io/npm/l/@heroku/evergreen-base.svg)](https://github.com/heroku/evergreen-base/blob/master/package.json)
npm package: @salesforce/i18n
Description: @salesforce/i18n reference implementation
Author: Salesforce
Latest version: 0.0.21

# @salesforce/i18n scoped module

Reference implementation of _@salesforce/i18n_ modules for all locales. A custom module loader is required to provision the appropriate locale-specific module.

Static modules are generated for all locales and available in `dist/`. Locales available on Salesforce Platform are exposed using [_lwc.config.json_](https://github.com/salesforce/lwc-rfcs/blob/master/text/0020-module-resolution.md).

## Typescript Interface

Refer to the `dist/types/index.d.ts` for Typescript interfaces for all _@salesforce/i18n_ modules.

## Module Naming

It is expected that consumers reference _@salesforce/i18n_ modules in a locale-agnostic manner and rely on the module loader to provision the locale-appropriate implementation.

Locales available on Salesforce Platform are exposed using [_lwc.config.json_](https://github.com/salesforce-emu/lwc-rfcs/blob/master/text/0020-module-resolution.md) with the naming scheme `@salesforce/i18n/{module name}/{locale}`.

For example, `@salesforce/i18n/dir` for locale `es-SV` is exposed as `@salesforce/i18n/dir/es-SV`.

A module loader may use this mapping to provision the locale-appropriate implementation.