]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/config/default-config.js
2 * @fileoverview Default configuration
3 * @author Nicholas C. Zakas
8 //-----------------------------------------------------------------------------
10 //-----------------------------------------------------------------------------
12 const Rules
= require("../rules");
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 exports
.defaultConfig
= [
23 espree
: require("espree")
27 * Because we try to delay loading rules until absolutely
28 * necessary, a proxy allows us to hook into the lazy-loading
29 * aspect of the rules map while still keeping all of the
30 * relevant configuration inside of the config array.
32 rules
: new Proxy({}, {
33 get(target
, property
) {
34 return Rules
.get(property
);
37 has(target
, property
) {
38 return Rules
.has(property
);
45 ecmaVersion
: "latest",
51 // default ignores are listed here
59 // intentionally empty config to ensure these files are globbed by default
61 files
: ["**/*.js", "**/*.mjs"]
66 sourceType
: "commonjs",