Added Standard with Typescript + Moved module methods to utils/itertools
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Siklos 2022-08-05 19:52:09 +02:00
parent 8e34d6b72a
commit 361a200d07
24 changed files with 258 additions and 223 deletions

View file

@ -5,7 +5,7 @@ module.exports = {
},
extends: [
'plugin:react/recommended',
'standard'
'standard-with-typescript'
],
parser: '@typescript-eslint/parser',
parserOptions: {
@ -13,7 +13,8 @@ module.exports = {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
sourceType: 'module',
project: './tsconfig.json'
},
plugins: [
'react',
@ -21,9 +22,11 @@ module.exports = {
],
rules: {
'space-before-function-paren': ['error', 'never'],
'@typescript-eslint/space-before-function-paren': ['error', 'never'],
indent: ['warn', 2, { SwitchCase: 1 }],
semi: ['warn', 'always'],
semi: 'off',
'@typescript-eslint/semi': ['warn', 'always'],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error'
'@typescript-eslint/no-unused-vars': 'error',
}
};