docs(prettier): add eslint docs

add README.md
add config and ignore files
This commit is contained in:
Максим Бучнев
2025-05-31 15:00:46 +03:00
parent b9fcb6ff9a
commit 26a3b73da6
3 changed files with 77 additions and 0 deletions

30
eslint/.eslintrc.json Normal file
View File

@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": "error",
// to enforce using type for object type definitions, can be type or interface
"@typescript-eslint/consistent-type-definitions": [
"error",
"type"
]
}
}