2022-11-13 07:05:11 +03:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
commonjs: true,
|
|
|
|
es2021: true,
|
|
|
|
},
|
2023-01-09 01:55:33 +03:00
|
|
|
extends: [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:node/recommended",
|
2023-03-03 22:02:32 +03:00
|
|
|
// "plugin:jsdoc/recommended"
|
2023-01-09 01:55:33 +03:00
|
|
|
],
|
2022-11-13 07:05:11 +03:00
|
|
|
overrides: [],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: "latest"
|
|
|
|
},
|
|
|
|
rules: {
|
2023-07-18 22:21:42 +03:00
|
|
|
"space-before-function-paren": ["error", {
|
|
|
|
anonymous: "always",
|
|
|
|
asyncArrow: "always",
|
|
|
|
named: "never"
|
|
|
|
}],
|
2022-11-13 07:05:11 +03:00
|
|
|
"node/no-unpublished-require": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
allowModules: ["electron"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-01-09 01:55:33 +03:00
|
|
|
plugins: [
|
|
|
|
"jsdoc"
|
|
|
|
],
|
2022-11-13 07:05:11 +03:00
|
|
|
globals: {
|
|
|
|
atom: "writeable"
|
|
|
|
}
|
|
|
|
};
|