1
0
Fork 0
VaultUI/.eslintrc.json

60 lines
1.4 KiB
JSON
Raw Normal View History

2021-05-07 23:08:02 +01:00
{
"plugins": ["sort-imports-es6-autofix", "@typescript-eslint", "prettier"],
2021-05-07 23:08:02 +01:00
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
2021-05-10 11:35:14 +01:00
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
2021-05-07 23:08:02 +01:00
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
2021-05-10 11:35:14 +01:00
"experimentalObjectRestSpread": true,
"project": "./tsconfig.json"
2021-05-07 23:08:02 +01:00
},
"globals": {
"pageContent": "writable",
"module": "writable",
"process": "writable",
2021-05-09 16:31:01 +01:00
"BUILD_STRING": "writable"
2021-05-07 23:08:02 +01:00
},
"rules": {
2022-01-07 15:55:15 +00:00
"import/no-named-as-default-member": "off",
"no-unused-vars": ["off"],
2021-05-07 23:08:02 +01:00
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
2021-05-12 18:26:32 +01:00
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
2021-05-12 17:37:09 +01:00
"@typescript-eslint/require-await": ["off"],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/ban-ts-comment": ["off"],
"sort-imports-es6-autofix/sort-imports-es6": [2],
"@typescript-eslint/no-explicit-any": [2],
"prettier/prettier": 2
2021-05-07 23:08:02 +01:00
},
"env": {
"browser": true,
"es6": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"settings": {
2022-01-07 15:55:15 +00:00
"import/ignore": ["preact"],
2021-05-07 23:08:02 +01:00
"import/resolver": {
"node": {
2021-05-22 09:50:55 +01:00
"extensions": [".js", ".ts", ".tsx"]
2021-05-07 23:08:02 +01:00
}
}
}
}