types-eslintrc
Version:
Type checking for .eslintrc.json
202 lines • 5.96 kB
TypeScript
import { z } from "zod";
export type ESLintEnvironment = {
/**
* Browser global variables.
*/
browser?: boolean;
/**
* Node.js global variables and Node.js scoping.
*/
node?: boolean;
/**
* CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack).
*/
commonjs?: boolean;
/**
* Globals common to both Node.js and Browser.
*/
["shared-node-browser"]?: boolean;
/**
* Enable all ECMAScript 6 features except for modules (this automatically sets the ecmaVersion parser option to 6).
*/
es6?: boolean;
/**
* Adds all ECMAScript 2017 globals and automatically sets the ecmaVersion parser option to 8.
*/
es2017?: boolean;
/**
* Adds all ECMAScript 2020 globals and automatically sets the ecmaVersion parser option to 11.
*/
es2020?: boolean;
/**
* Adds all ECMAScript 2021 globals and automatically sets the ecmaVersion parser option to 12.
*/
es2021?: boolean;
/**
* Web workers global variables.
*/
worker?: boolean;
/**
* Defines require() and define() as global variables as per the amd spec.
*/
amd?: boolean;
/**
* Adds all of the Mocha testing global variables.
*/
mocha?: boolean;
/**
* Adds all of the Jasmine testing global variables for version 1.3 and 2.0.
*/
jasmine?: boolean;
/**
* Jest global variables.
*/
jest?: boolean;
/**
* PhantomJS global variables.
*/
phantomjs?: boolean;
/**
* Protractor global variables.
*/
protractor?: boolean;
/**
* QUnit global variables.
*/
qunit?: boolean;
/**
* jQuery global variables.
*/
jquery?: boolean;
/**
* Prototype.js global variables.
*/
prototypejs?: boolean;
/**
* ShellJS global variables.
*/
shelljs?: boolean;
/**
* Meteor global variables.
*/
meteor?: boolean;
/**
* Meteor global variables.
*/
mongo?: boolean;
/**
* AppleScript global variables.
*/
applescript?: boolean;
/**
* Java 8 Nashorn global variables.
*/
nashorn?: boolean;
/**
* Service Worker global variables.
*/
serviceworker?: boolean;
/**
* Atom test helper globals.
*/
atomtest?: boolean;
/**
* Ember test helper globals.
*/
embertest?: boolean;
/**
* WebExtensions globals.
*/
webextensions?: boolean;
/**
* GreaseMonkey globals.
*/
greasemonkey?: boolean;
[custom: string]: boolean | undefined;
};
export declare const esLintEnvironmentSchema: z.ZodIntersection<z.ZodObject<{
browser: z.ZodOptional<z.ZodBoolean>;
node: z.ZodOptional<z.ZodBoolean>;
commonjs: z.ZodOptional<z.ZodBoolean>;
es6: z.ZodOptional<z.ZodBoolean>;
es2017: z.ZodOptional<z.ZodBoolean>;
es2020: z.ZodOptional<z.ZodBoolean>;
es2021: z.ZodOptional<z.ZodBoolean>;
worker: z.ZodOptional<z.ZodBoolean>;
amd: z.ZodOptional<z.ZodBoolean>;
mocha: z.ZodOptional<z.ZodBoolean>;
jasmine: z.ZodOptional<z.ZodBoolean>;
jest: z.ZodOptional<z.ZodBoolean>;
phantomjs: z.ZodOptional<z.ZodBoolean>;
protractor: z.ZodOptional<z.ZodBoolean>;
qunit: z.ZodOptional<z.ZodBoolean>;
jquery: z.ZodOptional<z.ZodBoolean>;
prototypejs: z.ZodOptional<z.ZodBoolean>;
shelljs: z.ZodOptional<z.ZodBoolean>;
meteor: z.ZodOptional<z.ZodBoolean>;
mongo: z.ZodOptional<z.ZodBoolean>;
applescript: z.ZodOptional<z.ZodBoolean>;
nashorn: z.ZodOptional<z.ZodBoolean>;
serviceworker: z.ZodOptional<z.ZodBoolean>;
atomtest: z.ZodOptional<z.ZodBoolean>;
embertest: z.ZodOptional<z.ZodBoolean>;
webextensions: z.ZodOptional<z.ZodBoolean>;
greasemonkey: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
browser?: boolean | undefined;
node?: boolean | undefined;
commonjs?: boolean | undefined;
es6?: boolean | undefined;
es2017?: boolean | undefined;
es2020?: boolean | undefined;
es2021?: boolean | undefined;
worker?: boolean | undefined;
amd?: boolean | undefined;
mocha?: boolean | undefined;
jasmine?: boolean | undefined;
jest?: boolean | undefined;
phantomjs?: boolean | undefined;
protractor?: boolean | undefined;
qunit?: boolean | undefined;
jquery?: boolean | undefined;
prototypejs?: boolean | undefined;
shelljs?: boolean | undefined;
meteor?: boolean | undefined;
mongo?: boolean | undefined;
applescript?: boolean | undefined;
nashorn?: boolean | undefined;
serviceworker?: boolean | undefined;
atomtest?: boolean | undefined;
embertest?: boolean | undefined;
webextensions?: boolean | undefined;
greasemonkey?: boolean | undefined;
}, {
browser?: boolean | undefined;
node?: boolean | undefined;
commonjs?: boolean | undefined;
es6?: boolean | undefined;
es2017?: boolean | undefined;
es2020?: boolean | undefined;
es2021?: boolean | undefined;
worker?: boolean | undefined;
amd?: boolean | undefined;
mocha?: boolean | undefined;
jasmine?: boolean | undefined;
jest?: boolean | undefined;
phantomjs?: boolean | undefined;
protractor?: boolean | undefined;
qunit?: boolean | undefined;
jquery?: boolean | undefined;
prototypejs?: boolean | undefined;
shelljs?: boolean | undefined;
meteor?: boolean | undefined;
mongo?: boolean | undefined;
applescript?: boolean | undefined;
nashorn?: boolean | undefined;
serviceworker?: boolean | undefined;
atomtest?: boolean | undefined;
embertest?: boolean | undefined;
webextensions?: boolean | undefined;
greasemonkey?: boolean | undefined;
}>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>>;
//# sourceMappingURL=environment.d.ts.map