mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
added eslint to prettier
This commit is contained in:
2
interface/.eslintignore
Normal file
2
interface/.eslintignore
Normal file
@@ -0,0 +1,2 @@
|
||||
# don't ever lint node_modules
|
||||
node_modules
|
||||
27
interface/.eslintrc
Normal file
27
interface/.eslintrc
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": [
|
||||
"@typescript-eslint",
|
||||
"prettier"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"rules": {
|
||||
// 0 = ignore, 1 = warning, 2 = error
|
||||
"no-console": 0,
|
||||
"prettier/prettier": 2,
|
||||
"explicit-function-return-type": 0,
|
||||
"@typescript-eslint/explicit-module-boundary-types": 0,
|
||||
"@typescript-eslint/no-var-requires": 0,
|
||||
"@typescript-eslint/ban-types": 0,
|
||||
"@typescript-eslint/no-non-null-asserted-optional-chain": 0,
|
||||
"@typescript-eslint/no-non-null-assertion": 0,
|
||||
"@typescript-eslint/no-explicit-any": 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user