2023-05-06 21:54:49 +01:00
|
|
|
module.exports = {
|
2023-08-26 00:38:26 +01:00
|
|
|
env: {
|
|
|
|
browser: false,
|
|
|
|
node: true,
|
|
|
|
commonjs: true,
|
|
|
|
es2021: true,
|
2023-05-06 21:54:49 +01:00
|
|
|
},
|
2023-08-26 00:38:26 +01:00
|
|
|
extends: "eslint:recommended",
|
|
|
|
overrides: [
|
2023-07-24 01:17:00 +01:00
|
|
|
{
|
2023-08-26 00:38:26 +01:00
|
|
|
files: ["**/*.ts", "**/*.js"],
|
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
plugins: ["@typescript-eslint"],
|
|
|
|
extends: [
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
],
|
|
|
|
},
|
2023-05-06 21:54:49 +01:00
|
|
|
],
|
2023-08-26 00:38:26 +01:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: "latest",
|
2023-05-06 21:54:49 +01:00
|
|
|
},
|
2023-08-26 00:38:26 +01:00
|
|
|
rules: {
|
|
|
|
indent: ["error", 2],
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
quotes: ["error", "single"],
|
|
|
|
semi: ["error", "always"],
|
|
|
|
"max-len": [
|
|
|
|
"warn",
|
2023-06-07 11:45:48 +01:00
|
|
|
{
|
2023-08-26 00:38:26 +01:00
|
|
|
code: 80,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-05-06 21:54:49 +01:00
|
|
|
};
|