-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Rich Harris <rich.harris@vercel.com> Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com> Co-authored-by: Dominic Gannaway <dg@domgan.com>
- Loading branch information
1 parent
1369aa5
commit fe8a9ce
Showing
7,233 changed files
with
86,262 additions
and
86,797 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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,23 @@ | ||
# NOTE: In general this should be kept in sync with .eslintignore | ||
|
||
**/dist/** | ||
**/config/** | ||
**/build/** | ||
**/playgrounds/sandbox/** | ||
**/npm/** | ||
**/*.js.flow | ||
**/*.d.ts | ||
**/playwright*/** | ||
**/vite.config.js | ||
**/vite.prod.config.js | ||
**/node_modules | ||
|
||
**/tests/** | ||
|
||
# documentation can contain invalid examples | ||
documentation/** | ||
|
||
# contains a fork of the REPL which doesn't adhere to eslint rules | ||
sites/svelte-5-preview/** | ||
# Wasn't checked previously, reenable at some point | ||
sites/svelte.dev/** |
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,54 @@ | ||
module.exports = { | ||
extends: ['@sveltejs'], | ||
|
||
// TODO: add runes to eslint-plugin-svelte | ||
globals: { | ||
$state: true, | ||
$derived: true, | ||
$effect: true, | ||
$props: true | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
// scripts and playground should be console logging so don't lint against them | ||
files: ['playgrounds/**/*', 'scripts/**/*'], | ||
rules: { | ||
'no-console': 'off' | ||
} | ||
}, | ||
{ | ||
// the playgrounds can use public naming conventions since they're examples | ||
files: ['playgrounds/**/*'], | ||
rules: { | ||
'lube/svelte-naming-convention': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['packages/svelte/src/compiler/**/*'], | ||
rules: { | ||
'no-var': 'error' | ||
} | ||
} | ||
], | ||
|
||
plugins: ['lube'], | ||
|
||
rules: { | ||
'no-console': 'error', | ||
'lube/svelte-naming-convention': ['error', { fixSameNames: true }], | ||
// eslint isn't that well-versed with JSDoc to know that `foo: /** @type{..} */ (foo)` isn't a violation of this rule, so turn it off | ||
'object-shorthand': 'off', | ||
'no-var': 'off', | ||
|
||
// TODO: enable these rules and run `pnpm lint:fix` | ||
// skipping that for now so as to avoid impacting real work | ||
'@typescript-eslint/array-type': 'off', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'prefer-const': 'off', | ||
'svelte/valid-compile': 'off', | ||
quotes: 'off' | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Release | |
on: | ||
push: | ||
branches: | ||
- svelte-4 | ||
- svelte-5 | ||
|
||
permissions: {} | ||
jobs: | ||
|
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 |
---|---|---|
@@ -1,6 +1,27 @@ | ||
# Dependency directories | ||
node_modules/ | ||
|
||
# IDE related | ||
.idea | ||
.DS_Store | ||
.vscode/* | ||
!.vscode/launch.json | ||
node_modules | ||
|
||
# Test coverage | ||
coverage | ||
*.lcov | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# build output | ||
dist | ||
.vercel | ||
|
||
# OS-specific | ||
.DS_Store | ||
|
||
tmp |
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,30 @@ | ||
# NOTE: In general this should be kept in sync with .eslintignore | ||
|
||
packages/**/dist/*.js | ||
packages/**/build/*.js | ||
packages/**/npm/**/* | ||
packages/**/config/*.js | ||
packages/svelte/tests/**/*.svelte | ||
packages/svelte/tests/**/_expected* | ||
packages/svelte/tests/**/_actual* | ||
packages/svelte/tests/**/expected* | ||
packages/svelte/tests/**/_output | ||
packages/svelte/tests/**/shards/*.test.js | ||
packages/svelte/tests/hydration/samples/*/_before.html | ||
packages/svelte/tests/hydration/samples/*/_before_head.html | ||
packages/svelte/tests/hydration/samples/*/_after.html | ||
packages/svelte/tests/hydration/samples/*/_after_head.html | ||
packages/svelte/types | ||
packages/svelte/compiler.cjs | ||
playgrounds/demo/src | ||
playgrounds/sandbox/input/**.svelte | ||
playgrounds/sandbox/output | ||
**/*.md | ||
**/node_modules | ||
**/.svelte-kit | ||
flow-typed | ||
.github/CODEOWNERS | ||
.prettierignore | ||
.eslintignore | ||
pnpm-lock.yaml | ||
pnpm-workspace.yaml |
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 |
---|---|---|
|
@@ -18,6 +18,5 @@ | |
"tabWidth": 2 | ||
} | ||
} | ||
], | ||
"pluginSearchDirs": ["."] | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,6 @@ | |
|
||
<style> | ||
button { | ||
width:200px; | ||
width: 200px; | ||
} | ||
</style> |
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 |
---|---|---|
|
@@ -13,6 +13,6 @@ | |
|
||
<style> | ||
button { | ||
width:200px; | ||
width: 200px; | ||
} | ||
</style> |
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.