.eslintrc.js 697 B

1234567891011121314151617181920212223242526272829
  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. '@typescript-eslint/consistent-type-imports': 'off',
  27. },
  28. };