massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / eslint / lib / config / default-config.js
1 /**
2  * @fileoverview Default configuration
3  * @author Nicholas C. Zakas
4  */
5
6 "use strict";
7
8 //-----------------------------------------------------------------------------
9 // Requirements
10 //-----------------------------------------------------------------------------
11
12 const Rules = require("../rules");
13
14 //-----------------------------------------------------------------------------
15 // Helpers
16 //-----------------------------------------------------------------------------
17
18
19 exports.defaultConfig = [
20     {
21         plugins: {
22             "@": {
23                 parsers: {
24                     espree: require("espree")
25                 },
26
27                 /*
28                  * Because we try to delay loading rules until absolutely
29                  * necessary, a proxy  allows us to hook into the lazy-loading
30                  * aspect of the rules map while still keeping all of the
31                  * relevant configuration inside of the config array.
32                  */
33                 rules: new Proxy({}, {
34                     get(target, property) {
35                         return Rules.get(property);
36                     },
37
38                     has(target, property) {
39                         return Rules.has(property);
40                     }
41                 })
42             }
43         },
44         ignores: [
45             "**/node_modules/**",
46             ".git/**"
47         ],
48         languageOptions: {
49             parser: "@/espree"
50         }
51     }
52 ];