|
1 |
| -import unusedImports from 'eslint-plugin-unused-imports' |
2 |
| -import typescriptEslint from '@typescript-eslint' |
3 |
| -import unicorn from 'unicorn' |
4 |
| -import prefer from 'prefer-arrow' |
5 |
| -import importPlugin from 'import' |
6 |
| -import prettierConfig from 'eslint-config-prettier' |
7 |
| - |
8 |
| -export const config = { |
| 1 | +module.exports = { |
9 | 2 | parser: '@typescript-eslint/parser',
|
10 | 3 | parserOptions: {
|
11 | 4 | project: './tsconfig.json',
|
12 | 5 | },
|
13 |
| - plugins: [typescriptEslint, unicorn, prefer, importPlugin, unusedImports], |
| 6 | + plugins: ['@typescript-eslint', 'unicorn', 'prefer-arrow', 'import'], |
14 | 7 | extends: [
|
15 | 8 | 'eslint:recommended',
|
16 | 9 | 'plugin:@typescript-eslint/recommended',
|
17 |
| - prettierConfig, |
| 10 | + 'prettier', |
18 | 11 | ],
|
19 | 12 | rules: {
|
20 | 13 | '@typescript-eslint/indent': ['off'],
|
@@ -67,28 +60,10 @@ export const config = {
|
67 | 60 | 'prefer-arrow/prefer-arrow-functions': ['error'],
|
68 | 61 | 'object-shorthand': ['error'],
|
69 | 62 | 'import/extensions': ['error', 'always', { ignorePackages: true }],
|
70 |
| - 'unused-imports/no-unused-imports': ['error'], |
71 | 63 | },
|
72 |
| - overrides: [ |
73 |
| - { |
74 |
| - files: ['*.tsx'], |
75 |
| - rules: { |
76 |
| - '@typescript-eslint/explicit-module-boundary-types': 'off', |
77 |
| - }, |
78 |
| - }, |
79 |
| - { |
80 |
| - files: ['*.d.ts'], |
81 |
| - rules: { |
82 |
| - '@typescript-eslint/consistent-type-definitions': 'off', |
83 |
| - '@typescript-eslint/ban-types': 'off', |
84 |
| - }, |
85 |
| - }, |
86 |
| - ], |
87 | 64 | env: {
|
88 | 65 | browser: true,
|
89 | 66 | amd: true,
|
90 | 67 | node: true,
|
91 | 68 | },
|
92 | 69 | }
|
93 |
| - |
94 |
| -export default [config] |
0 commit comments