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