Files
releases/docs/eslint.config.mjs
T
Charlie Egan b1eb646ddc docs/website: Add formatting and linting checks (#8288)
* Update baseline-browser-mapping to version 2.9.19

Addresses issue in build

[baseline-browser-mapping] The data in this module is over two
months old.  To ensure accurate Baseline data, please update: `npm i
baseline-browser-mapping@latest -D`

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

* Add fmt and lint config for docs

This is based on dprint and eslint. Some vendored paths are ignored.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

* Format and lint docs project

Markdown linting will be added in another PR.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

---------

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
2026-02-03 17:01:54 +00:00

39 lines
832 B
JavaScript

import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
console: "readonly",
process: "readonly",
require: "readonly",
module: "readonly",
__dirname: "readonly",
__filename: "readonly",
window: "readonly",
document: "readonly",
navigator: "readonly",
URL: "readonly",
fetch: "readonly",
},
},
rules: {
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-console": "off",
},
},
{
ignores: [
"node_modules/**",
".docusaurus/**",
"build/**",
"projects/regal/**",
"src/theme/prism-rego.js",
"src/theme/prism-include-languages.js",
],
},
];