66 lines
1.1 KiB
JavaScript
66 lines
1.1 KiB
JavaScript
module.exports = {
|
|
"env": {
|
|
"es2021": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:import/recommended",
|
|
"plugin:import/typescript",
|
|
"prettier",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
"overrides": [
|
|
{
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"files": [
|
|
".eslintrc.{js,cjs}"
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "script"
|
|
}
|
|
}
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
singleQuote: true,
|
|
printWidth: 120
|
|
}
|
|
],
|
|
"import/order": ["error"],
|
|
/**
|
|
"indent": [
|
|
"error",
|
|
2
|
|
],
|
|
**/
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"@typescript-eslint/no-unused-vars": ["warn"]
|
|
}
|
|
}
|