mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-16 21:31:34 -06:00
b1eb646ddc
* 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>
39 lines
832 B
JavaScript
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",
|
|
],
|
|
},
|
|
];
|