Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit 68ac1db

Browse files
committed
fix: revert recent changes
Migrating to typescript eslint v6 is a bigger task, and we should maybe consider a different approach to ensure consistend code style.
1 parent 12b9a31 commit 68ac1db

File tree

8 files changed

+280
-497
lines changed

8 files changed

+280
-497
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["./index.js"]
3+
}

.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

index.js

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
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 = {
92
parser: '@typescript-eslint/parser',
103
parserOptions: {
114
project: './tsconfig.json',
125
},
13-
plugins: [typescriptEslint, unicorn, prefer, importPlugin, unusedImports],
6+
plugins: ['@typescript-eslint', 'unicorn', 'prefer-arrow', 'import'],
147
extends: [
158
'eslint:recommended',
169
'plugin:@typescript-eslint/recommended',
17-
prettierConfig,
10+
'prettier',
1811
],
1912
rules: {
2013
'@typescript-eslint/indent': ['off'],
@@ -67,28 +60,10 @@ export const config = {
6760
'prefer-arrow/prefer-arrow-functions': ['error'],
6861
'object-shorthand': ['error'],
6962
'import/extensions': ['error', 'always', { ignorePackages: true }],
70-
'unused-imports/no-unused-imports': ['error'],
7163
},
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-
],
8764
env: {
8865
browser: true,
8966
amd: true,
9067
node: true,
9168
},
9269
}
93-
94-
export default [config]

0 commit comments

Comments
 (0)