From 8c8558965b155f78193de6b3739d827130203267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 12 Nov 2023 21:34:47 +0100 Subject: [PATCH] Move configs into package.json --- .eslintignore | 2 - .eslintrc.yml | 29 --------- .nycrc.json | 7 --- .prettierrc | 3 - .vscode/settings.json | 37 ------------ {examples => doc/examples}/docker-compose.yml | 0 package.json | 59 ++++++++++++++++++- 7 files changed, 58 insertions(+), 79 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.yml delete mode 100644 .nycrc.json delete mode 100644 .prettierrc delete mode 100644 .vscode/settings.json rename {examples => doc/examples}/docker-compose.yml (100%) diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f643809..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -public/dist -babel.config.js diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index 245b133..0000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,29 +0,0 @@ -env: - browser: true - es2021: true -extends: - - 'eslint:recommended' - - 'plugin:react/recommended' - - "plugin:react-hooks/recommended" - - 'plugin:@typescript-eslint/recommended' -parser: '@typescript-eslint/parser' -parserOptions: - ecmaFeatures: - jsx: true - ecmaVersion: 12 - sourceType: module -plugins: - - prettier - - react - - '@typescript-eslint' -settings: - react: - version: detect -rules: - "prettier/prettier": "error" - "@typescript-eslint/explicit-module-boundary-types": 0 - "@typescript-eslint/no-explicit-any": 0 - "@typescript-eslint/no-non-null-assertion": 0 - react/display-name: 0 - react/prop-types: 0 - diff --git a/.nycrc.json b/.nycrc.json deleted file mode 100644 index 773de14..0000000 --- a/.nycrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "all": true, - "reporter": ["text", "html"], - "include": [".esbuild-test/**"], - "exclude": [], - "excludeAfterRemap": false -} diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index bf357fb..0000000 --- a/.prettierrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "trailingComma": "all" -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 5781974..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "editor.tabSize": 2, - "files.exclude": { - "bin/dsadmin": true, - "bin/dsadmin-*": true, - "build/": true, - "node_modules/": true, - "coverage/": true - }, - "search.exclude": { - "**/node_modules": true - }, - "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[typescriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[css]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - } -} diff --git a/examples/docker-compose.yml b/doc/examples/docker-compose.yml similarity index 100% rename from examples/docker-compose.yml rename to doc/examples/docker-compose.yml diff --git a/package.json b/package.json index d6a934f..5752fc8 100644 --- a/package.json +++ b/package.json @@ -72,5 +72,62 @@ "datastore", "emulator", "gui" - ] + ], + "nyc": { + "all": true, + "reporter": [ + "text", + "html" + ], + "include": [ + ".esbuild-test/**" + ], + "exclude": [], + "excludeAfterRemap": false + }, + "eslintConfig": { + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:react-hooks/recommended", + "plugin:@typescript-eslint/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 12, + "ecmaFeatures": { + "jsx": true + }, + "sourceType": "module" + }, + "plugins": [ + "prettier", + "react", + "@typescript-eslint" + ], + "settings": { + "react": { + "version": "detect" + } + }, + "rules": { + "prettier/prettier": "error", + "@typescript-eslint/explicit-module-boundary-types": 0, + "@typescript-eslint/no-explicit-any": 0, + "@typescript-eslint/no-non-null-assertion": 0, + "react/display-name": 0, + "react/prop-types": 0 + }, + "ignorePatterns": [ + "public/dist", + "babel.config.js" + ] + }, + "prettier": { + "trailingComma": "all" + } }