55 * LICENSE file in the root directory of this source tree.
66 */
77
8+ /* eslint-disable sort-keys */
9+
810const fs = require ( 'fs' ) ;
911const path = require ( 'path' ) ;
1012const { sync : readPkg } = require ( 'read-pkg' ) ;
@@ -27,6 +29,7 @@ module.exports = {
2729 'jest/globals' : true ,
2830 } ,
2931 extends : [
32+ 'eslint:recommended' ,
3033 'plugin:markdown/recommended' ,
3134 'plugin:import/errors' ,
3235 'plugin:eslint-comments/recommended' ,
@@ -38,6 +41,7 @@ module.exports = {
3841 overrides : [
3942 {
4043 extends : [
44+ 'plugin:@typescript-eslint/recommended' ,
4145 'plugin:@typescript-eslint/eslint-recommended' ,
4246 'plugin:import/typescript' ,
4347 ] ,
@@ -52,10 +56,14 @@ module.exports = {
5256 { argsIgnorePattern : '^_' } ,
5357 ] ,
5458 '@typescript-eslint/prefer-ts-expect-error' : 'error' ,
59+ '@typescript-eslint/no-var-requires' : 'off' ,
5560 // TS verifies these
5661 'consistent-return' : 'off' ,
5762 'no-dupe-class-members' : 'off' ,
5863 'no-unused-vars' : 'off' ,
64+ // TODO: enable at some point
65+ '@typescript-eslint/no-explicit-any' : 'off' ,
66+ '@typescript-eslint/no-non-null-assertion' : 'off' ,
5967 } ,
6068 } ,
6169 {
@@ -144,6 +152,9 @@ module.exports = {
144152 files : [ '**/*.md/**' ] ,
145153 rules : {
146154 '@typescript-eslint/no-unused-vars' : 'off' ,
155+ '@typescript-eslint/no-empty-function' : 'off' ,
156+ '@typescript-eslint/no-namespace' : 'off' ,
157+ '@typescript-eslint/no-empty-interface' : 'off' ,
147158 'arrow-body-style' : 'off' ,
148159 'consistent-return' : 'off' ,
149160 'import/export' : 'off' ,
@@ -201,6 +212,13 @@ module.exports = {
201212 ] ,
202213 } ,
203214 } ,
215+ {
216+ files : [ '**/__tests__/**' , '**/__mocks__/**' ] ,
217+ rules : {
218+ '@typescript-eslint/ban-ts-comment' : 'off' ,
219+ '@typescript-eslint/no-empty-function' : 'off' ,
220+ } ,
221+ } ,
204222 {
205223 files : [
206224 '**/__tests__/**' ,
@@ -247,6 +265,12 @@ module.exports = {
247265 'import/no-extraneous-dependencies' : 'off' ,
248266 } ,
249267 } ,
268+ {
269+ files : [ '**/__typetests__/**' ] ,
270+ rules : {
271+ '@typescript-eslint/no-empty-function' : 'off' ,
272+ } ,
273+ } ,
250274 {
251275 files : [
252276 '**/__typetests__/**' ,
0 commit comments