Skip to content

Commit a028348

Browse files
committed
chore: lint
1 parent 8128e80 commit a028348

17 files changed

Lines changed: 172 additions & 443 deletions

File tree

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ custom
55
packages
66
node_modules
77
*.ts
8+
*.svelte
89
kitchen-sink/core
910
kitchen-sink/svelte/dist
1011
kitchen-sink/react/dist

.eslintrc.js

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -157,53 +157,5 @@ module.exports = {
157157
'import/no-extraneous-dependencies': ['off'],
158158
},
159159
},
160-
161-
// SVELTE
162-
{
163-
plugins: [],
164-
files: ['**/*.svelte'],
165-
extends: ['airbnb-base', 'plugin:svelte/prettier'],
166-
// parser: '@babel/eslint-parser',
167-
// // Add an `overrides` section to add a parser configuration for svelte.
168-
// overrides: [
169-
// {
170-
// files: ['*.svelte'],
171-
// parser: 'svelte-eslint-parser',
172-
// },
173-
// // ...
174-
// ],
175-
rules: {
176-
...rules,
177-
'no-restricted-globals': ['off'],
178-
'object-curly-newline': ['off'],
179-
curly: ['off'],
180-
indent: ['off'],
181-
'operator-linebreak': ['off'],
182-
'nonblock-statement-body-position': ['off'],
183-
'import/no-mutable-exports': ['off'],
184-
'import/first': ['off'],
185-
'import/no-unresolved': ['off'],
186-
'import/no-extraneous-dependencies': ['off'],
187-
'import/prefer-default-export': ['off'],
188-
'import/extensions': ['off'],
189-
'no-multiple-empty-lines': ['off'],
190-
'no-undef-init': ['off'],
191-
'no-shadow': ['off'],
192-
'no-nested-ternary': ['off'],
193-
'a11y-invalid-attribute': ['off'],
194-
'a11y-missing-attribute': ['off'],
195-
'max-len': ['off'],
196-
},
197-
},
198-
{
199-
files: ['kitchen-sink/svelte/src/**/*.svelte'],
200-
rules: {
201-
...rules,
202-
'no-console': ['off'],
203-
'no-return-assign': ['off'],
204-
'implicit-arrow-linebreak': ['off'],
205-
'no-restricted-globals': ['off'],
206-
},
207-
},
208160
],
209161
};

kitchen-sink/svelte/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
// eslint-disable-next-line
3-
import svelte from 'rollup-plugin-svelte';
3+
import { svelte } from '@sveltejs/vite-plugin-svelte';
44

55
const buildFolder = process.env.NODE_ENV === 'production' ? 'packages' : 'build';
66

0 commit comments

Comments
 (0)