2022-05-03 21:45:37 +02:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"webextensions": true
|
|
|
|
},
|
|
|
|
"plugins": ["@typescript-eslint"],
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:import/recommended",
|
|
|
|
"plugin:import/typescript",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/no-explicit-any": "off", // TODO: This should be re-enabled
|
2022-07-22 11:15:10 +02:00
|
|
|
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
2022-05-03 21:45:37 +02:00
|
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"accessibility": "no-public"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/no-this-alias": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowedNames": ["self"]
|
|
|
|
}
|
|
|
|
],
|
2022-07-22 11:15:10 +02:00
|
|
|
"no-console": "error",
|
2022-05-03 21:45:37 +02:00
|
|
|
"import/no-unresolved": "off", // TODO: Look into turning off once each package is an actual package.
|
|
|
|
"import/order": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"alphabetize": {
|
|
|
|
"order": "asc"
|
|
|
|
},
|
|
|
|
"newlines-between": "always",
|
|
|
|
"pathGroups": [
|
|
|
|
{
|
2022-06-14 17:10:53 +02:00
|
|
|
"pattern": "@bitwarden/**",
|
2022-05-03 21:45:37 +02:00
|
|
|
"group": "external",
|
|
|
|
"position": "after"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pattern": "src/**/*",
|
|
|
|
"group": "parent",
|
|
|
|
"position": "before"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"pathGroupsExcludedImportTypes": ["builtin"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|