1.1.0 • Published 10 months ago

@openally/config.eslint v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Requirements

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i -D @openally/config.eslint
# or
$ yarn add @openally/config.eslint -D

Usage

Create a eslint.config.mjs file in the root of your project and extend the @openally/eslint-config configuration.

TypeScript

// eslint.config.mjs
import { typescriptConfig } from "@openally/config.eslint";

export default typescriptConfig({
  // Your custom configuration
});

JavaScript

// eslint.config.mjs
import { ESLintConfig } from "@openally/config.eslint";

export default [
  ...ESLintConfig,
  // Your custom configuration
];

Globals

This package export the npm package globals in case you need to add global variables to your project.

For instance if you need browser globals you can add the following to your eslint.config.mjs file:

// eslint.config.mjs
import { ESLintConfig, globals } from "@openally/config.eslint";

export default [
  ...ESLintConfig,
  {
    languageOptions: {
      globals: {
        ...globals.browser
      }
    }
  }
];

License

MIT