0.8.12 • Published 8 months ago

@open-xchange/linter-presets v0.8.12

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
8 months ago

@open-xchange/linter-presets

This package provides configuration presets for ESLint and StyleLint, including wrappers for various linter plugins.

ESLint

The module eslint exports a configure function for setting up the entire project (e.g. TypeScript files, JSON files, license headers, etc.), and a set of environment presets that apply more ESLint plugins and rules to a specific subset of the project (e.g. browser code, unit test code, etc.).

Usage example:

// eslint.config.js
import { eslint } from "@open-xchange/linter-presets"

export default [

  // global project configuration
  ...eslint.configure({ /* config options */ }),

  // add environments
  ...eslint.env.browser({ files: ["src/**/*.js"], /* ... */ }),
  ...eslint.env.vitest({ files: ["test/**/*.js"], /* ... */ }),

  // add custom configurations
  { /* ... */ },
]

See the eslint module documentation for more details.

StyleLint

The module stylelint exports a configure function for setting up the entire project (e.g. CSS files, SCSS files, license headers, etc.).

Usage example:

// stylelint.config.js
import { stylelint } from "@open-xchange/linter-presets"

export default stylelint.configure({
  /* config options */
})

See the stylelint module documentation for more details.

Utils

The module utils exports utility functions to be used in ESLint and StyleLint configuration files.

See the utils module documentation for more details.

0.8.12

8 months ago

0.8.11

8 months ago

0.8.10

8 months ago

0.8.9

9 months ago

0.8.8

9 months ago

0.8.5

10 months ago

0.8.7

9 months ago

0.8.6

9 months ago

0.8.4

10 months ago

0.8.3

10 months ago

0.8.2

10 months ago

0.8.1

10 months ago

0.8.0

10 months ago

0.7.1

10 months ago

0.7.0

11 months ago

0.6.0

11 months ago

0.5.1

11 months ago

0.5.0

11 months ago

0.4.3

11 months ago

0.4.2

11 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.3.3

11 months ago

0.3.2

11 months ago

0.3.1

11 months ago

0.3.0

11 months ago

0.2.0

11 months ago

0.1.13

11 months ago

0.1.12

12 months ago

0.1.11

12 months ago

0.1.10

12 months ago

0.1.9

12 months ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago