Skip to content

Commit

Permalink
Merge pull request #67 from ya-erm/dev
Browse files Browse the repository at this point in the history
Balance chart and suggestions for new categories (Version 2.9.2)
  • Loading branch information
ya-erm authored Sep 2, 2024
2 parents c104857 + a2b6e47 commit 436f5b7
Show file tree
Hide file tree
Showing 92 changed files with 3,536 additions and 1,885 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig is awesome: https://EditorConfig.org

# Top-most EditorConfig file
root = true

# Matches all files
[*]

charset = utf-8

indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.ts]
indent_size = 2

[*.svelte]
indent_size = 2
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"cSpell.words": ["datetime", "dndzone", "iconify", "Initialisable", "networkidle"],
"cSpell.language": "en,ru,en-US,en-GB",
"eslint.validate": ["javascript", "typescript", "svelte"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2
}
93 changes: 93 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';

import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import globals from 'globals';
import svelteParser from 'svelte-eslint-parser';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ['**/*.js', '**/playwright.config.ts', '**/service-worker.ts'],
},
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier',
),
{
plugins: {
'@typescript-eslint': typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

parser: tsParser,
ecmaVersion: 2020,
sourceType: 'module',

parserOptions: {
project: ['tsconfig.json'],
extraFileExtensions: ['.svelte'],
},
},
},
{
files: ['**/*.svelte'],

languageOptions: {
parser: svelteParser,
ecmaVersion: 5,
sourceType: 'script',

parserOptions: {
parser: '@typescript-eslint/parser',
},
},

rules: {
'svelte/valid-compile': [
'error',
{
ignoreWarnings: true,
},
],
},
},
{
files: ['**/*.ts', '**/*.svelte'],

rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-non-null-assertion': 'warn',

'no-console': [
'warn',
{
allow: ['warn', 'error'],
},
],
},
},
];
Loading

0 comments on commit 436f5b7

Please sign in to comment.