|
| 1 | +module.exports = { |
| 2 | + extends: 'eslint-config-ali/typescript/react', |
| 3 | + parserOptions: { |
| 4 | + project: [], // for lint performance |
| 5 | + createDefaultProgram: false, // for lint performance |
| 6 | + }, |
| 7 | + rules: { |
| 8 | + 'react/no-multi-comp': 0, |
| 9 | + 'no-unused-expressions': 0, |
| 10 | + 'implicit-arrow-linebreak': 1, |
| 11 | + 'no-nested-ternary': 1, |
| 12 | + 'no-mixed-operators': 1, |
| 13 | + '@typescript-eslint/ban-types': 1, |
| 14 | + 'no-shadow': 1, |
| 15 | + 'no-prototype-builtins': 1, |
| 16 | + 'no-useless-constructor': 1, |
| 17 | + 'no-empty-function': 1, |
| 18 | + 'lines-between-class-members': 0, |
| 19 | + 'no-await-in-loop': 0, |
| 20 | + 'no-plusplus': 0, |
| 21 | + '@typescript-eslint/no-parameter-properties': 0, |
| 22 | + 'no-restricted-exports': ['error'], |
| 23 | + 'no-multi-assign': 1, |
| 24 | + 'no-dupe-class-members': 1, |
| 25 | + 'react/no-deprecated': 1, |
| 26 | + 'no-useless-escape': 1, |
| 27 | + 'brace-style': 1, |
| 28 | + '@typescript-eslint/no-inferrable-types': 0, |
| 29 | + 'no-proto': 0, |
| 30 | + 'prefer-const': 0, |
| 31 | + 'eol-last': 0, |
| 32 | + 'react/no-find-dom-node': 0, |
| 33 | + 'no-case-declarations': 0, |
| 34 | + '@typescript-eslint/indent': 0, |
| 35 | + 'import/no-cycle': 0, |
| 36 | + '@typescript-eslint/no-shadow': 0, |
| 37 | + '@typescript-eslint/method-signature-style': 0, |
| 38 | + '@typescript-eslint/consistent-type-assertions': 0, |
| 39 | + '@typescript-eslint/no-useless-constructor': 0, |
| 40 | + '@typescript-eslint/dot-notation': 0, // for lint performance |
| 41 | + '@typescript-eslint/restrict-plus-operands': 0, // for lint performance |
| 42 | + 'no-unexpected-multiline': 1, |
| 43 | + 'no-multiple-empty-lines': ['error', { max: 1 }], |
| 44 | + 'lines-around-comment': ['error', { |
| 45 | + beforeBlockComment: true, |
| 46 | + afterBlockComment: false, |
| 47 | + afterLineComment: false, |
| 48 | + allowBlockStart: true, |
| 49 | + }], |
| 50 | + 'comma-dangle': ['error', 'always-multiline'], |
| 51 | + '@typescript-eslint/member-ordering': [ |
| 52 | + 'error', |
| 53 | + { default: ['signature', 'field', 'constructor', 'method'] } |
| 54 | + ], |
| 55 | + '@typescript-eslint/no-unused-vars': ['error'], |
| 56 | + 'no-redeclare': 0, |
| 57 | + '@typescript-eslint/no-redeclare': 1, |
| 58 | + }, |
| 59 | +}; |
0 commit comments