google_forms/node_modules/eslint/lib/config/default-config.js

68 lines
1.8 KiB
JavaScript
Raw Normal View History

2024-08-09 12:04:48 +00:00
/**
* @fileoverview Default configuration
* @author Nicholas C. Zakas
*/
"use strict";
//-----------------------------------------------------------------------------
// Requirements
//-----------------------------------------------------------------------------
const Rules = require("../rules");
//-----------------------------------------------------------------------------
// Helpers
//-----------------------------------------------------------------------------
exports.defaultConfig = [
{
plugins: {
"@": {
/*
* Because we try to delay loading rules until absolutely
2024-08-21 06:34:30 +00:00
* necessary, a proxy allows us to hook into the lazy-loading
2024-08-09 12:04:48 +00:00
* aspect of the rules map while still keeping all of the
* relevant configuration inside of the config array.
*/
rules: new Proxy({}, {
get(target, property) {
return Rules.get(property);
},
has(target, property) {
return Rules.has(property);
}
})
}
},
2024-08-21 06:34:30 +00:00
languageOptions: {
sourceType: "module",
ecmaVersion: "latest",
parser: require("espree"),
parserOptions: {}
}
},
// default ignores are listed here
{
2024-08-09 12:04:48 +00:00
ignores: [
2024-08-21 06:34:30 +00:00
"**/node_modules/",
".git/"
]
},
// intentionally empty config to ensure these files are globbed by default
{
files: ["**/*.js", "**/*.mjs"]
},
{
files: ["**/*.cjs"],
2024-08-09 12:04:48 +00:00
languageOptions: {
2024-08-21 06:34:30 +00:00
sourceType: "commonjs",
ecmaVersion: "latest"
2024-08-09 12:04:48 +00:00
}
}
];