.eslintrc.js 640 B

12345678910111213141516171819202122232425262728
  1. module.exports = {
  2. env: {
  3. },
  4. globals: {
  5. },
  6. settings: {
  7. },
  8. rules: {
  9. indent: 'off',
  10. '@typescript-eslint/indent': [
  11. 'error',
  12. 2,
  13. {
  14. SwitchCase: 1,
  15. ArrayExpression: 'first',
  16. FunctionDeclaration: { body: 1, parameters: 2 },
  17. FunctionExpression: { body: 1, parameters: 2 },
  18. ignoredNodes: [
  19. 'ClassBody > PropertyDefinition[decorators] > Identifier',
  20. 'ClassBody > MethodDefinition[decorators] > Identifier',
  21. ],
  22. },
  23. ],
  24. // set 'warn' temporarily -- 2022.07.13 Yuki Takei
  25. '@typescript-eslint/no-explicit-any': ['warn'],
  26. },
  27. };