Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
579 B

// ESLint flat config for polkit JavaScript rules.
// Fedora's polkit uses the duktape engine: ES5.1 only, with a `polkit` global
// (plus Polkit/Netgroup helpers) injected at runtime.
export default [
{
files: ["**/*.rules"],
languageOptions: {
ecmaVersion: 5,
sourceType: "script",
globals: {
polkit: "readonly",
Polkit: "readonly",
Netgroup: "readonly",
},
},
rules: {
"no-undef": "error", // catches typos on the polkit API / action ids stored in vars
"no-unused-vars": "warn",
},
},
];