docs(prettier): add eslint docs
add README.md add config and ignore files
This commit is contained in:
30
eslint/.eslintrc.json
Normal file
30
eslint/.eslintrc.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user