open-index/open-npm huggingface dataset:
npm package: @notus/eslint-config-base
Description: Notus's base TS ESLint config, following our styleguide
Latest version: 0.1.6

# `@notus/eslint-config-base`

A super-strict TypeScript linting configuration for enforcing best practices.

### Installation

First, install the needed development dependencies:

```sh
# Ensure TypeScript and the TS ESLint parser are installed
npm install --save-dev typescript @typescript-eslint/parser
# Ensure ESLint & Prettier are installed
npm install --save-dev eslint prettier
# Install plugins used by @notus/eslint-config-base
npm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-import eslint-plugin-prettier eslint-plugin-jsdoc eslint-plugin-tsdoc eslint-plugin-array-func eslint-plugin-eslint-comments eslint-plugin-node

# Install the Notus ESLint config
npm install --save-dev @notus/eslint-config-base
```

### Usage

Then, configure your ESLint to use the Notus configuration. An example ESLint configuration is provided below:

```js
module.exports = {
  root: true,

  // Make ESLint compatible with TypeScript
  parser: '@typescript-eslint/parser',
  parserOptions: {
    // Enable linting rules with type information from our tsconfig
    tsconfigRootDir: __dirname,
    project: ['./tsconfig.json'],

    // Allow the use of imports / ES modules
    sourceType: 'module',

    ecmaFeatures: {
      // Enable global strict mode
      impliedStrict: true,
    },
  },

  // Specify global variables that are predefined
  env: {
    node: true, // Enable node global variables & Node.js scoping
    es2020: true, // Add all ECMAScript 2020 globals and automatically set the ecmaVersion parser option to ES2020
  },

  plugins: [],
  // extends: ['@notus/eslint-config-base'],
  extends: ['@notus/eslint-config-base/loose'],
  rules: {},
  overrides: [],
}
```
npm package: @notweb/i2c
Description: I2C access with Node.js
Author: Kohei Watanabe
Latest version: 0.0.1
Deprecated: This project has been renamed to node-web-i2c. Install using node-web-i2c instead.

# @notweb/i2c

I2C access with Node.js

## Usage

```js
const { requestI2CAccess } = require("@notweb/i2c");

const ADT7410_ADDR = 0x48;

async function main() {
  const i2cAccess = await requestI2CAccess();
  const port = gpioAccess.ports.get(1);
  const i2cSlave = await port.open(ADT7410_ADDR);
  const temperature =
    (((await i2cSlave.read8(0x00)) << 8) + (await i2cSlave.read8(0x01))) / 128;
  console.log(`Temperature: ${temperature} ℃`);
}

main();
```

## Document

[Web I2C API](http://browserobo.github.io/WebI2C)
npm package: @notwoods/eslint-config-preact
Description: Truly unopinionated base ESLint configuration for Preact projects.
Author: Tiger Oakes
Latest version: 1.0.0

# @notwoods/eslint-config-preact

A truly unopinionated baseline ESLint configuration for [Preact](https://preactjs.com/) codebases.

It helps you avoid bugs, and lets you know when there's a more optimal way to do things.

✅ **What's included:** sensible defaults for Preact development.

⛔️ **What's not included:** no stylistic or subjective rules are provided.

Right now, this plugin contains two configurations:

- `base` - Just includes the React ESLint plugin, and some rules to avoid legacy APIs not supported in Preact.
- `recommended` - enables recommended rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react?tab=readme-ov-file#list-of-supported-rules), configured to use Preact instead.

## Compared to Preact's eslint-config-preact

This config only includes rules from [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react), unlike the official Preact config which prescribes Jest and Mocha rules.

## Installation

Install eslint and this config:

```
npm i -D eslint @notwoods/eslint-config-preact
```

## Usage (flat config)

Use in your [`eslint.config.js`](https://eslint.org/docs/latest/use/configure/configuration-files) file anytime you want to extend one of the configs:

```js
import preact from "@notwoods/eslint-plugin-react";

export default [
  // apply base Preact rules
  preact.configs.base,

  // apply recommended Preact rules
  ...preact.configs.recommended,
];
```

Make sure you're running eslint `v8.21.0`, `v9.0.0`, or higher for this configuration format to work.

## Usage (legacy .eslintrc config)

The [legacy format](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated) is not supported by this config.