@open-xchange/linter-presets v0.8.12
@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.
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
10 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago