¶Ô±ÈÐÂÎļþ |
| | |
| | | export default { |
| | | extends: ['@vben'], |
| | | plugins: ['simple-import-sort'], |
| | | rules: { |
| | | 'simple-import-sort/imports': 'error', |
| | | 'simple-import-sort/exports': 'error', |
| | | |
| | | '@typescript-eslint/ban-ts-comment': [ |
| | | 'error', |
| | | { |
| | | 'ts-expect-error': 'allow-with-description', |
| | | 'ts-ignore': 'allow-with-description', |
| | | 'ts-nocheck': 'allow-with-description', |
| | | 'ts-check': false, |
| | | }, |
| | | ], |
| | | |
| | | /** |
| | | * ã强å¶ãå
³é®åååæä¸ä¸ªç©ºæ ¼ |
| | | * @link https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/keyword-spacing.md |
| | | */ |
| | | 'keyword-spacing': 'off', |
| | | '@typescript-eslint/keyword-spacing': [ |
| | | 'error', |
| | | { |
| | | before: true, |
| | | after: true, |
| | | overrides: { |
| | | return: { after: true }, |
| | | throw: { after: true }, |
| | | case: { after: true }, |
| | | }, |
| | | }, |
| | | ], |
| | | |
| | | /** |
| | | * ç¦æ¢åºç°ç©ºå½æ°ï¼æ®é彿°ï¼é async/await/generatorï¼ãç®å¤´å½æ°ãç±»ä¸çæ¹æ³é¤å¤ |
| | | * @link https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-function.md |
| | | */ |
| | | 'no-empty-function': 'off', |
| | | '@typescript-eslint/no-empty-function': [ |
| | | 'error', |
| | | { |
| | | allow: ['arrowFunctions', 'functions', 'methods'], |
| | | }, |
| | | ], |
| | | |
| | | /** |
| | | * ä¼å
ä½¿ç¨ interface è䏿¯ type å®ä¹å¯¹è±¡ç±»å |
| | | * @link https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md |
| | | */ |
| | | '@typescript-eslint/consistent-type-definitions': ['warn', 'interface'], |
| | | |
| | | 'vue/attributes-order': 'error', |
| | | 'vue/require-default-prop': 'error', |
| | | }, |
| | | }; |