-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename svitejs -> sveltejs, remove svite references adpot s…
…ome svelte/kit settings
- Loading branch information
Showing
220 changed files
with
1,244 additions
and
4,537 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,172 +1,148 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:node/recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'prettier' | ||
], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly' | ||
}, | ||
plugins: ['@typescript-eslint', 'svelte3', 'html', 'markdown'], | ||
settings: { | ||
'svelte3/typescript': require('typescript'), | ||
'svelte3/ignore-styles': (attrs) => | ||
(attrs.type && attrs.type !== 'text/css') || | ||
(attrs.lang && attrs.lang !== 'css') | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020 | ||
}, | ||
rules: { | ||
'no-debugger': ['error'], | ||
'node/no-missing-import': [ | ||
'error', | ||
{ | ||
allowModules: ['types', 'estree', 'testUtils'], | ||
tryExtensions: ['.ts', '.js', '.jsx', '.tsx'] | ||
} | ||
], | ||
'node/no-missing-require': [ | ||
'error', | ||
{ | ||
// for try-catching yarn pnp | ||
allowModules: ['pnpapi'], | ||
tryExtensions: ['.ts', '.js', '.jsx', '.tsx'] | ||
} | ||
], | ||
root: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:node/recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'prettier' | ||
], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly' | ||
}, | ||
plugins: ['@typescript-eslint', 'svelte3', 'html', 'markdown'], | ||
settings: { | ||
'svelte3/typescript': require('typescript'), | ||
'svelte3/ignore-styles': (attrs) => | ||
(attrs.type && attrs.type !== 'text/css') || (attrs.lang && attrs.lang !== 'css') | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020 | ||
}, | ||
rules: { | ||
'no-debugger': ['error'], | ||
'node/no-missing-import': [ | ||
'error', | ||
{ | ||
allowModules: ['types', 'estree', 'testUtils'], | ||
tryExtensions: ['.ts', '.js', '.jsx', '.tsx'] | ||
} | ||
], | ||
'node/no-missing-require': [ | ||
'error', | ||
{ | ||
// for try-catching yarn pnp | ||
allowModules: ['pnpapi'], | ||
tryExtensions: ['.ts', '.js', '.jsx', '.tsx'] | ||
} | ||
], | ||
|
||
'node/no-extraneous-import': [ | ||
'error', | ||
{ | ||
allowModules: ['vite'] | ||
} | ||
], | ||
'node/no-extraneous-require': [ | ||
'error', | ||
{ | ||
allowModules: ['vite'] | ||
} | ||
], | ||
'node/no-deprecated-api': 'off', | ||
'node/no-unpublished-import': 'off', | ||
'node/no-unpublished-require': 'off', | ||
'node/no-unsupported-features/es-syntax': 'off', | ||
'no-process-exit': 'off' | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['packages/playground/**'], | ||
rules: { | ||
'node/no-extraneous-import': 'off', | ||
'node/no-extraneous-require': 'off', | ||
'no-unused-vars': 'off' | ||
}, | ||
env: { | ||
browser: true | ||
} | ||
}, | ||
{ | ||
files: ['packages/templates/**'], | ||
rules: { | ||
'node/no-extraneous-import': [ | ||
'error', | ||
{ | ||
allowModules: ['@svitejs/vite-plugin-svelte', 'svite'] | ||
} | ||
], | ||
'node/no-extraneous-require': [ | ||
'error', | ||
{ | ||
allowModules: ['@svitejs/vite-plugin-svelte', 'svite'] | ||
} | ||
] | ||
}, | ||
env: { | ||
browser: true | ||
} | ||
}, | ||
{ | ||
files: [ | ||
'packages/templates/**/vite.config.js', | ||
'packages/playground/**/vite.config.js' | ||
], | ||
rules: { | ||
'no-unused-vars': 'off', | ||
'node/no-missing-require': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svelte'], | ||
env: { | ||
es6: true, | ||
browser: true, | ||
node: false | ||
}, | ||
processor: 'svelte3/svelte3', | ||
rules: { | ||
'import/first': 'off', | ||
'import/no-duplicates': 'off', | ||
'import/no-mutable-exports': 'off', | ||
'import/no-unresolved': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svx', '**/*.md'], | ||
processor: 'markdown/markdown', | ||
rules: { | ||
'no-undef': 'off', | ||
'no-unused-vars': 'off', | ||
'no-console': 'off', | ||
'padded-blocks': 'off', | ||
'node/no-missing-import': 'off', | ||
'node/no-extraneous-require': 'off', | ||
'import/no-unresolved': 'off', | ||
'node/no-missing-require': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svx/*.**', '**/*.md/*.**'], | ||
rules: { | ||
'no-undef': 'off', | ||
'no-unused-vars': 'off', | ||
'no-console': 'off', | ||
'padded-blocks': 'off', | ||
'node/no-missing-import': 'off', | ||
'node/no-extraneous-require': 'off', | ||
'import/no-unresolved': 'off', | ||
'node/no-missing-require': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.spec.ts'], | ||
env: { | ||
jest: true, | ||
node: true, | ||
browser: true | ||
}, | ||
// Can't extend in overrides: https://github.com/eslint/eslint/issues/8813 | ||
// "extends": ["plugin:jest/recommended"] | ||
plugins: ['jest'], | ||
rules: { | ||
'jest/no-disabled-tests': 'warn', | ||
'jest/no-focused-tests': 'error', | ||
'jest/no-identical-title': 'error', | ||
'jest/prefer-to-have-length': 'warn', | ||
'jest/valid-expect': 'error' | ||
} | ||
}, | ||
{ | ||
files: ['scripts/**'], | ||
env: { | ||
jest: true, | ||
node: true, | ||
browser: false | ||
} | ||
} | ||
] | ||
} | ||
'node/no-extraneous-import': [ | ||
'error', | ||
{ | ||
allowModules: ['vite'] | ||
} | ||
], | ||
'node/no-extraneous-require': [ | ||
'error', | ||
{ | ||
allowModules: ['vite'] | ||
} | ||
], | ||
'node/no-deprecated-api': 'off', | ||
'node/no-unpublished-import': 'off', | ||
'node/no-unpublished-require': 'off', | ||
'node/no-unsupported-features/es-syntax': 'off', | ||
'no-process-exit': 'off' | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['packages/playground/**'], | ||
rules: { | ||
'node/no-extraneous-import': 'off', | ||
'node/no-extraneous-require': 'off', | ||
'no-unused-vars': 'off' | ||
}, | ||
env: { | ||
browser: true | ||
} | ||
}, | ||
{ | ||
files: ['packages/templates/**/vite.config.js', 'packages/playground/**/vite.config.js'], | ||
rules: { | ||
'no-unused-vars': 'off', | ||
'node/no-missing-require': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svelte'], | ||
env: { | ||
es6: true, | ||
browser: true, | ||
node: false | ||
}, | ||
processor: 'svelte3/svelte3', | ||
rules: { | ||
'import/first': 'off', | ||
'import/no-duplicates': 'off', | ||
'import/no-mutable-exports': 'off', | ||
'import/no-unresolved': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svx', '**/*.md'], | ||
processor: 'markdown/markdown', | ||
rules: { | ||
'no-undef': 'off', | ||
'no-unused-vars': 'off', | ||
'no-console': 'off', | ||
'padded-blocks': 'off', | ||
'node/no-missing-import': 'off', | ||
'node/no-extraneous-require': 'off', | ||
'import/no-unresolved': 'off', | ||
'node/no-missing-require': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svx/*.**', '**/*.md/*.**'], | ||
rules: { | ||
'no-undef': 'off', | ||
'no-unused-vars': 'off', | ||
'no-console': 'off', | ||
'padded-blocks': 'off', | ||
'node/no-missing-import': 'off', | ||
'node/no-extraneous-require': 'off', | ||
'import/no-unresolved': 'off', | ||
'node/no-missing-require': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.spec.ts'], | ||
env: { | ||
jest: true, | ||
node: true, | ||
browser: true | ||
}, | ||
// Can't extend in overrides: https://github.com/eslint/eslint/issues/8813 | ||
// "extends": ["plugin:jest/recommended"] | ||
plugins: ['jest'], | ||
rules: { | ||
'jest/no-disabled-tests': 'warn', | ||
'jest/no-focused-tests': 'error', | ||
'jest/no-identical-title': 'error', | ||
'jest/prefer-to-have-length': 'warn', | ||
'jest/valid-expect': 'error' | ||
} | ||
}, | ||
{ | ||
files: ['scripts/**'], | ||
env: { | ||
jest: true, | ||
node: true, | ||
browser: false | ||
} | ||
} | ||
] | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Svite GitHub Community | ||
url: https://github.com/svitejs/svite/discussions | ||
about: Please ask and answer questions here. | ||
- name: Svite Discord | ||
url: https://discord.gg/nzgMZJD | ||
- name: Svelte Discord | ||
url: https://svelte.dev/chat | ||
about: If you want to chat, join our discord. |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.