Skip to content

Commit eabde48

Browse files
authored
chore(linter): replace deprecated tslint with eslint (#915)
1 parent e2156c8 commit eabde48

File tree

202 files changed

+5275
-4996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+5275
-4996
lines changed

.eslintrc.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
env: {
3+
es2021: true,
4+
node: true,
5+
},
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'plugin:prettier/recommended',
10+
],
11+
parserOptions: {
12+
ecmaVersion: 2021,
13+
sourceType: 'module',
14+
},
15+
plugins: ['prettier', '@typescript-eslint'],
16+
rules: {
17+
'@typescript-eslint/ban-types': 'off',
18+
'@typescript-eslint/no-explicit-any': 'off',
19+
'@typescript-eslint/explicit-module-boundary-types': [
20+
'error',
21+
{
22+
allowArgumentsExplicitlyTypedAsAny: true,
23+
},
24+
],
25+
},
26+
};

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ node_modules
1212
npm-debug.log
1313

1414
# build
15-
**/*.js
16-
**/*.js.map
17-
**/*.d.ts
15+
dist/**/*.js
16+
dist/**/*.js.map
17+
dist/**/*.d.ts
1818

1919
# src
2020
!src/hooks/shared/hooks.d.ts

.prettierrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
printWidth: 100,
3+
singleQuote: true
4+
};

0 commit comments

Comments
 (0)