-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an option to use a play button instead of autoplaying, fixes
Updated ESLint
- Loading branch information
1 parent
2f241bb
commit 2d0d0dd
Showing
23 changed files
with
290 additions
and
162 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import eslintPluginSvelte from 'eslint-plugin-svelte' | ||
import globals from 'globals' | ||
import js from '@eslint/js' | ||
import svelteParser from "svelte-eslint-parser" | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default [ | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...eslintPluginSvelte.configs['flat/recommended'], | ||
{ | ||
files: ['**/*.svelte', '*.svelte'], | ||
languageOptions: { | ||
parser: svelteParser, | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
}, | ||
}, | ||
}, | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 13, | ||
globals: { | ||
...globals.browser, | ||
...globals.es2021, | ||
...globals.jquery, | ||
}, | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'brace-style': ['error', 'stroustrup', {'allowSingleLine': true}], | ||
'comma-dangle': ['error', 'always-multiline'], | ||
curly: ['error'], | ||
eqeqeq: ['error', 'always', {null: 'ignore'}], | ||
indent: ['error', 4, {MemberExpression: 'off', SwitchCase: 1}], | ||
'linebreak-style': ['error', 'unix'], | ||
'no-constant-condition': ['error', {checkLoops: false}], | ||
'no-empty': ['error', {allowEmptyCatch: true}], | ||
'no-trailing-spaces': ['error'], | ||
'no-var': ['error'], | ||
'prefer-const': ['error', {destructuring: 'all'}], | ||
quotes: ['error', 'single', {allowTemplateLiterals: true, avoidEscape: true}], | ||
semi: ['error', 'never'], | ||
'@typescript-eslint/no-empty-function': ['off'], | ||
'@typescript-eslint/no-explicit-any': ['off'], | ||
'@typescript-eslint/no-non-null-assertion': ['off'], | ||
'@typescript-eslint/no-unused-vars': ['error', {'args': 'none'}], | ||
}, | ||
}, | ||
] |
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
Oops, something went wrong.