dominoclock/.eslintrc.json

59 lines
1.8 KiB
JSON
Raw Normal View History

2021-11-17 00:45:48 +00:00
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "jest", "unused-imports"],
2023-02-15 17:58:13 +00:00
"extends": ["@open-wc", "prettier", "eslint:recommended"],
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-shadow": ["warn"],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
"arrow-body-style": "warn",
"camelcase": "off",
"default-param-last": "off",
"dot-notation": "warn",
"eqeqeq": "warn",
"import/extensions": "off",
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-cycle": "warn",
"import/no-extraneous-dependencies": "warn",
"import/order": "warn",
"import/prefer-default-export": "warn",
"no-else-return": "warn",
"no-nested-ternary": "off",
"no-param-reassign": "warn",
"no-return-assign": "warn",
"no-sequences": "warn",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-unneeded-ternary": "warn",
"no-unused-vars": "off",
"no-use-before-define": "off",
"object-shorthand": "warn",
"one-var": ["error", "never"],
"one-var-declaration-per-line": ["error", "initializations"],
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-destructuring": "warn",
"prefer-template": "warn",
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
2021-11-17 00:45:48 +00:00
}