21 lines
434 B
JavaScript
21 lines
434 B
JavaScript
const globals = require("globals");
|
|
const pluginJs = require("@eslint/js");
|
|
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
|
|
|
|
module.exports = [
|
|
{
|
|
files: ["src/**/*.js"],
|
|
languageOptions: {
|
|
sourceType: "commonjs"
|
|
}
|
|
},
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
pluginJs.configs.recommended,
|
|
eslintPluginPrettierRecommended
|
|
];
|