@@ -11,16 +11,18 @@ module.exports = {
1111 plugins : [
1212 '@typescript-eslint' ,
1313 ] ,
14+ parserOptions : {
15+ project : './tsconfig.json'
16+ } ,
1417 extends : [
1518 // See https://github.com/standard/eslint-config-standard/blob/master/eslintrc.json
16- 'standard' ,
19+ 'standard-with-typescript ' ,
1720 'plugin:@typescript-eslint/eslint-recommended' ,
1821 'plugin:@typescript-eslint/recommended' ,
1922 ] ,
2023 rules : {
2124 'array-bracket-spacing' : [ 'error' , 'always' ] ,
2225 'arrow-parens' : [ 'error' , 'as-needed' ] ,
23- 'comma-dangle' : 'off' ,
2426 '@typescript-eslint/comma-dangle' : [ 'error' , 'always-multiline' ] ,
2527 eqeqeq : [ 'error' , 'smart' ] ,
2628 'implicit-arrow-linebreak' : [ 'error' , 'beside' ] ,
@@ -36,28 +38,26 @@ module.exports = {
3638 alphabetize : { order : 'asc' } ,
3739 } ,
3840 ] ,
39- 'indent' : 'off' ,
4041 '@typescript-eslint/indent' : [ 'error' , 2 , { MemberExpression : 'off' } ] ,
4142 'no-var' : [ 'error' ] ,
42- // Primarily to avoid false positive with interfaces declarations
43- // See https://github.com/typescript-eslint/typescript-eslint/issues/1262
44- 'no-use-before-define' : 'off' ,
45- '@typescript-eslint/no-use-before-define' : 'off' ,
4643 'nonblock-statement-body-position' : [ 'error' , 'beside' ] ,
47- 'object-curly-spacing' : 'off' ,
48- '@typescript-eslint/object-curly-spacing' : [ 'error' , 'always' ] ,
4944 'object-shorthand' : [ 'error' , 'properties' ] ,
5045 'prefer-arrow-callback' : [ 'error' ] ,
51- 'prefer-const' : [ 'error' ] ,
5246 'prefer-rest-params' : 'off' ,
47+
48+ // TODO remove (= enable these lints and fix the issues)
5349 '@typescript-eslint/ban-ts-comment' : [ 'error' , {
5450 'ts-expect-error' : false , // TODO: "allow-with-description",
5551 'ts-nocheck' : false ,
5652 } ] ,
57- '@typescript-eslint/consistent-type-imports ' : [ 'error' , { prefer : 'type-imports' } ] ,
53+ '@typescript-eslint/explicit-function-return-type ' : 'off' ,
5854 '@typescript-eslint/no-explicit-any' : 'off' ,
59- semi : 'off' ,
60- '@typescript-eslint/semi' : [ 'error' , 'never' ] ,
55+ '@typescript-eslint/restrict-plus-operands' : 'off' ,
56+ '@typescript-eslint/restrict-template-expressions' : 'off' ,
57+
58+ // Enable when strict or strictNullChecks is enabled in tsconfig
59+ '@typescript-eslint/prefer-nullish-coalescing' : 'off' ,
60+ '@typescript-eslint/strict-boolean-expressions' : 'off' ,
6161 } ,
6262 globals : {
6363 // Mocha globals
0 commit comments