36 lines
698 B
JavaScript
36 lines
698 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
commonjs: true,
|
|
es2021: true,
|
|
},
|
|
extends: "eslint:recommended",
|
|
overrides: [
|
|
{
|
|
files: ["**/*.ts", "**/*.js"],
|
|
parser: "@typescript-eslint/parser",
|
|
plugins: ["@typescript-eslint"],
|
|
extends: [
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
],
|
|
},
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
},
|
|
rules: {
|
|
indent: ["error", 2],
|
|
"linebreak-style": ["error", "unix"],
|
|
quotes: ["error", "single"],
|
|
semi: ["error", "always"],
|
|
"max-len": [
|
|
"warn",
|
|
{
|
|
code: 80,
|
|
},
|
|
],
|
|
},
|
|
};
|