Refactor Editor and module functions (#15)
All checks were successful
continuous-integration/drone/push Build is passing

Moved all module functions to separate utils modules

Replaced standard with standard with typescript

Extracted UI elements to separate component

Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/15
This commit is contained in:
Siklos 2022-08-05 15:38:44 -04:00
parent 8e34d6b72a
commit 293af45144
26 changed files with 477 additions and 367 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',
}
};