|
@@ -5,20 +5,24 @@ module.exports = {
|
|
|
node: true,
|
|
|
jest: true,
|
|
|
},
|
|
|
+ parser: '@typescript-eslint/parser',
|
|
|
parserOptions: {
|
|
|
ecmaVersion: 'latest',
|
|
|
+ sourceType: 'module',
|
|
|
+ project: './tsconfig.json',
|
|
|
},
|
|
|
- parser: '@typescript-eslint/parser',
|
|
|
- extends: ['eslint:recommended'],
|
|
|
+ plugins: ['@typescript-eslint'],
|
|
|
+ extends: [
|
|
|
+ 'eslint:recommended',
|
|
|
+ 'plugin:@typescript-eslint/eslint-recommended',
|
|
|
+ 'plugin:@typescript-eslint/recommended',
|
|
|
+ ],
|
|
|
rules: {
|
|
|
curly: [1, 'all'],
|
|
|
- // allow paren-less arrow functions
|
|
|
'arrow-parens': 0,
|
|
|
- // allow async-await
|
|
|
'generator-star-spacing': 0,
|
|
|
'no-unused-vars': [0, { args: 'after-used', vars: 'local' }],
|
|
|
'no-constant-condition': 0,
|
|
|
- // allow debugger during development
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
|
},
|
|
|
-}
|
|
|
+};
|