-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update deps * chore: improve layout --------- Co-authored-by: Shamim <[email protected]>
- Loading branch information
1 parent
19f8598
commit 5d1b73b
Showing
68 changed files
with
5,117 additions
and
4,323 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import js from '@eslint/js'; | ||
import prettier from 'eslint-config-prettier'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
import svelte from 'eslint-plugin-svelte'; | ||
import globals from 'globals'; | ||
import ts from 'typescript-eslint'; | ||
|
||
/** @type {import('eslint').Linter.FlatConfig[]} */ | ||
export default [ | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
...svelte.configs['flat/recommended'], | ||
prettier, | ||
...svelte.configs['flat/prettier'], | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node | ||
} | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svelte'], | ||
languageOptions: { | ||
parserOptions: { | ||
parser: ts.parser | ||
} | ||
} | ||
}, | ||
{ | ||
ignores: [ | ||
'build/', | ||
'.svelte-kit/', | ||
'.vercel/', | ||
'test-results/', | ||
'dist/', | ||
'.DS_Store', | ||
'src/lib/components/common/Analytics.svelte', | ||
'src/lib/i18n/' | ||
] | ||
}, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'svelte/no-at-html-tags': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off' | ||
} | ||
}, | ||
{ | ||
plugins: { | ||
'simple-import-sort': simpleImportSort | ||
}, | ||
rules: { | ||
'simple-import-sort/imports': [ | ||
'error', | ||
{ | ||
groups: [ | ||
// Packages `svelte` related packages come first. | ||
['^svelte', '^@?\\w'], | ||
// Packages `sveltekit` related packages come first. | ||
['^sveltekit', '^@?\\w'], | ||
// Packages that starts with $../.. come first. | ||
['^\\$', '^@?\\w'], | ||
// Side effect imports. | ||
['^\\u0000'], | ||
// Parent imports. Put `..` last. | ||
['^\\.\\.(?!/?$)', '^\\.\\./?$'], | ||
// Other relative imports. Put same-folder imports and `.` last. | ||
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], | ||
// Style imports. | ||
['^.+\\.?(css)$'] | ||
] | ||
} | ||
], | ||
'simple-import-sort/exports': 'error' | ||
} | ||
} | ||
]; |
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.