|
| 1 | +module.exports = { |
| 2 | + ignores: [ |
| 3 | + 'media/**', |
| 4 | + 'test/config/fixtures/config-errors/test.js', |
| 5 | + 'test/line-numbers/fixtures/line-numbers.js', |
| 6 | + 'test-tap/fixture/snapshots/test-sourcemaps/build/**', |
| 7 | + 'test-tap/fixture/report/edgecases/ast-syntax-error.cjs', |
| 8 | + 'examples/typescript-*/**/*.ts', |
| 9 | + ], |
| 10 | + rules: { |
| 11 | + 'import/order': [ |
| 12 | + 'error', |
| 13 | + { |
| 14 | + alphabetize: { |
| 15 | + order: 'asc', |
| 16 | + }, |
| 17 | + 'newlines-between': 'always', |
| 18 | + }, |
| 19 | + ], |
| 20 | + 'import/newline-after-import': 'error', |
| 21 | + 'unicorn/require-post-message-target-origin': 'off', |
| 22 | + }, |
| 23 | + overrides: [ |
| 24 | + { |
| 25 | + files: [ |
| 26 | + 'index.d.ts', |
| 27 | + 'types/*.d.ts', |
| 28 | + ], |
| 29 | + rules: { |
| 30 | + 'import/extensions': 'off', |
| 31 | + }, |
| 32 | + }, |
| 33 | + { |
| 34 | + files: 'plugin.d.ts', |
| 35 | + rules: { |
| 36 | + 'node/prefer-global/url': 'off', |
| 37 | + }, |
| 38 | + }, |
| 39 | + { |
| 40 | + files: '{test,test-{d,tap}}/**/*.ts', |
| 41 | + rules: { |
| 42 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 43 | + '@typescript-eslint/no-empty-function': 'off', |
| 44 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 45 | + '@typescript-eslint/no-unsafe-call': 'off', |
| 46 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 47 | + '@typescript-eslint/no-unsafe-return': 'off', |
| 48 | + '@typescript-eslint/no-unused-vars': 'off', |
| 49 | + '@typescript-eslint/prefer-readonly-parameter-types': 'off', |
| 50 | + }, |
| 51 | + }, |
| 52 | + { |
| 53 | + files: '{test,test-{d,tap}}/**', |
| 54 | + rules: { |
| 55 | + 'import/no-anonymous-default-export': 'off', |
| 56 | + 'node/prefer-global/buffer': 'off', |
| 57 | + 'node/prefer-global/process': 'off', |
| 58 | + }, |
| 59 | + }, |
| 60 | + { |
| 61 | + files: 'test-tap/**', |
| 62 | + rules: { |
| 63 | + 'promise/prefer-await-to-then': 'off', |
| 64 | + 'unicorn/error-message': 'off', |
| 65 | + 'unicorn/no-array-reduce': 'off', |
| 66 | + 'unicorn/prevent-abbreviations': 'off', |
| 67 | + }, |
| 68 | + }, |
| 69 | + { |
| 70 | + files: 'test/macros/fixtures/macros.js', |
| 71 | + rules: { |
| 72 | + 'ava/no-identical-title': 'off', |
| 73 | + }, |
| 74 | + }, |
| 75 | + { |
| 76 | + files: [ |
| 77 | + 'examples/**', |
| 78 | + 'test/snapshot-*/fixtures/**', |
| 79 | + ], |
| 80 | + rules: { |
| 81 | + 'unicorn/prefer-module': 'off', |
| 82 | + }, |
| 83 | + }, |
| 84 | + { |
| 85 | + files: 'examples/**', |
| 86 | + rules: { |
| 87 | + 'ava/no-only-test': 'off', |
| 88 | + }, |
| 89 | + }, |
| 90 | + ], |
| 91 | +}; |
0 commit comments