-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
190 additions
and
119 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import type { Linter } from 'eslint'; | ||
import react from 'eslint-plugin-react'; | ||
import globals from 'globals'; | ||
import eslintJS from '@eslint/js'; | ||
import eslintTS from 'typescript-eslint'; | ||
|
||
const config: Linter.Config[] = [ | ||
...eslintTS.configs.recommended as Linter.Config[], | ||
{ | ||
...eslintJS.configs.recommended, | ||
files: ['**/*.{ts,mts,tsx}'], | ||
ignores: ['*.js'], | ||
plugins: { | ||
react | ||
}, | ||
settings: { | ||
react: { | ||
...react.configs.recommended.settings, | ||
version: 'detect' | ||
} | ||
}, | ||
languageOptions: { | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
globals: { | ||
...globals.browser, | ||
} | ||
}, | ||
rules: { | ||
...react.configs.recommended.rules, | ||
'no-restricted-globals': ['error'], | ||
'no-console': ['error', { | ||
allow: ['warn', 'error'] | ||
}], | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
'@typescript-eslint/no-empty-object-type': 'off', | ||
'react/prop-types': 'off', | ||
'react/no-unescaped-entities': 'off', | ||
'no-script-url': 'error', | ||
'no-eval': 'error', | ||
'quotes': [ | ||
'error', | ||
'single', | ||
{ allowTemplateLiterals: true } | ||
], | ||
'jsx-quotes': [ | ||
'error', | ||
'prefer-double', | ||
], | ||
'@typescript-eslint/prefer-ts-expect-error': 'error', | ||
'object-curly-spacing': [ | ||
'error', | ||
'always' | ||
], | ||
'array-bracket-spacing': [ | ||
'error', | ||
'never' | ||
], | ||
'eqeqeq': [ | ||
'error', | ||
'smart', | ||
], | ||
'no-multi-spaces': 'error' | ||
} | ||
} | ||
]; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 20 additions & 12 deletions
32
app/src/app/components/note-viewer/elements/drawing/trim-canvas.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.