Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

30 changes: 0 additions & 30 deletions .eslintrc.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,3 @@ jobs:

- name: Build
run: npm run build

- name: Story build
run: npm run story:build
82 changes: 82 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import jsConfigs from '@eslint/js';
import typescriptParser from '@typescript-eslint/parser';
import svelteParser from 'svelte-eslint-parser';
import eslintPluginPrettier from 'eslint-plugin-prettier';
import eslintConfigPrettier from 'eslint-config-prettier';
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin';

export default [
jsConfigs.configs.recommended,

{
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
extraFileExtensions: ['.svelte']
},
globals: {
browser: true,
es2017: true,
node: true,
console: 'readonly'
}
},
ignores: [
'node_modules/',
'build/',
'.svelte-kit/',
'.svelte-kit/output/',
'.env',
'package-lock.json'
],
rules: {
'prettier/prettier': 'error',
'no-sparse-arrays': 'off',
'no-undef': 'off',
'no-useless-escape': 'off',
'no-empty': 'off',
'no-constant-binary-expression': 'off',
'no-unused-vars': 'off',
'no-constant-condition': 'off',
'no-cond-assign': 'off',
'@typescript-eslint/require-await': 'off',
'no-control-regex': 'off',
'no-case-declarations': 'off',
'no-self-assign': 'off',
'no-async-promise-executor': 'off',
'no-fallthrough': 'off',
'no-prototype-builtins': 'off',
'no-redeclare': 'off',
'no-extra-boolean-cast': 'off'
},
plugins: {
prettier: eslintPluginPrettier,
'@typescript-eslint': typescriptEslintPlugin
}
},

{
files: ['*.svelte'],
languageOptions: {
parser: svelteParser,
parserOptions: {
parser: typescriptParser
}
}
},

{
files: ['.svelte-kit/**'],
rules: {
'no-unused-vars': 'off',
'no-control-regex': 'off',
'no-fallthrough': 'off',
'@typescript-eslint/require-await': 'off',
'no-unused-labels': 'off'
}
},

eslintConfigPrettier
];
18 changes: 0 additions & 18 deletions histoire.config.js

This file was deleted.

Loading