mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
chore(web-client): configure ESLint
Co-authored-by: irving ou <jou@devolutions.net>
This commit is contained in:
committed by
Benoît Cortier
co-authored by
irving ou
parent
19b8c119a9
commit
7839acfa63
@@ -0,0 +1,13 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/build
|
||||
/.svelte-kit
|
||||
/package
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# Ignore files for PNPM, NPM and YARN
|
||||
pnpm-lock.yaml
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
@@ -0,0 +1,53 @@
|
||||
# ESLint:
|
||||
# - https://eslint.org/docs/latest/use/configure/
|
||||
|
||||
# eslint-plugin-prettier:
|
||||
# - https://github.com/prettier/eslint-plugin-prettier
|
||||
# - https://www.npmjs.com/package/eslint-plugin-prettier
|
||||
|
||||
# eslint-plugin-svelte:
|
||||
# - https://github.com/sveltejs/eslint-plugin-svelte
|
||||
# - https://sveltejs.github.io/eslint-plugin-svelte/user-guide/
|
||||
---
|
||||
root: true
|
||||
|
||||
plugins:
|
||||
- "@typescript-eslint"
|
||||
|
||||
extends:
|
||||
- "eslint:recommended"
|
||||
- "plugin:@typescript-eslint/recommended"
|
||||
- "plugin:svelte/prettier" # Turns off rules that may conflict with Prettier
|
||||
- "plugin:prettier/recommended"
|
||||
|
||||
parser: "@typescript-eslint/parser"
|
||||
parserOptions:
|
||||
project: ./tsconfig.json
|
||||
sourceType: module
|
||||
ecmaVersion: 2020
|
||||
extraFileExtensions:
|
||||
- ".svelte"
|
||||
|
||||
ignorePatterns:
|
||||
- "*.cjs"
|
||||
|
||||
overrides:
|
||||
- files: "*.svelte"
|
||||
parser: svelte-eslint-parser
|
||||
parserOptions:
|
||||
parser: "@typescript-eslint/parser"
|
||||
|
||||
env:
|
||||
browser: true
|
||||
es2017: true
|
||||
node: true
|
||||
|
||||
rules:
|
||||
strict: 2
|
||||
"@typescript-eslint/no-unused-vars":
|
||||
- "error"
|
||||
- argsIgnorePattern: '^_'
|
||||
"@typescript-eslint/strict-boolean-expressions":
|
||||
- 2
|
||||
- allowString: false
|
||||
allowNumber: false
|
||||
+3022
-26
File diff suppressed because it is too large
Load Diff
@@ -16,20 +16,32 @@
|
||||
"build-alone": "vite build",
|
||||
"pre-build": "node ./pre-build.js",
|
||||
"preview": "vite preview",
|
||||
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||
"lint": "tsc --noemit && prettier . --check .",
|
||||
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
|
||||
"lint": "npm run lint:prettier && npm run lint:eslint",
|
||||
"lint:prettier": "prettier . --check",
|
||||
"lint:eslint": "eslint src/**",
|
||||
|
||||
"format": "prettier . --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^2.0.0",
|
||||
"@tsconfig/svelte": "^3.0.0",
|
||||
"eslint": "^8.52.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-plugin-prettier": "^5.0.1",
|
||||
"eslint-plugin-svelte": "^2.34.1",
|
||||
"prettier": "^3.0.3",
|
||||
"prettier-plugin-svelte": "^3.0.3",
|
||||
"rxjs": "^6.6.7",
|
||||
"svelte": "^3.54.0",
|
||||
"svelte-check": "^2.10.0",
|
||||
"svelte-eslint-parser": "^0.33.1",
|
||||
"@sveltejs/vite-plugin-svelte": "^2.0.0",
|
||||
"@tsconfig/svelte": "^3.0.0",
|
||||
"tslib": "^2.4.1",
|
||||
"typescript": "^4.9.3",
|
||||
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
||||
"vite": "^4.0.0",
|
||||
"vite-plugin-dts": "^1.7.1",
|
||||
"vite-plugin-top-level-await": "^1.2.2",
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
|
||||
plugins: ['svelte3', '@typescript-eslint'],
|
||||
ignorePatterns: ['*.cjs'],
|
||||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
||||
settings: {
|
||||
'svelte3/typescript': () => require('typescript')
|
||||
},
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 2020
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
es2017: true,
|
||||
node: true
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,54 @@
|
||||
# ESLint:
|
||||
# - https://eslint.org/docs/latest/use/configure/
|
||||
|
||||
# eslint-plugin-prettier:
|
||||
# - https://github.com/prettier/eslint-plugin-prettier
|
||||
# - https://www.npmjs.com/package/eslint-plugin-prettier
|
||||
|
||||
# eslint-plugin-svelte:
|
||||
# - https://github.com/sveltejs/eslint-plugin-svelte
|
||||
# - https://sveltejs.github.io/eslint-plugin-svelte/user-guide/
|
||||
---
|
||||
root: true
|
||||
|
||||
plugins:
|
||||
- "@typescript-eslint"
|
||||
- 'html'
|
||||
|
||||
extends:
|
||||
- "eslint:recommended"
|
||||
- "plugin:@typescript-eslint/recommended"
|
||||
- "plugin:svelte/prettier" # Turns off rules that may conflict with Prettier
|
||||
- "plugin:prettier/recommended"
|
||||
|
||||
parser: "@typescript-eslint/parser"
|
||||
parserOptions:
|
||||
project: ./tsconfig.json
|
||||
sourceType: module
|
||||
ecmaVersion: 2020
|
||||
extraFileExtensions:
|
||||
- ".svelte"
|
||||
|
||||
ignorePatterns:
|
||||
- "*.cjs"
|
||||
|
||||
overrides:
|
||||
- files: "*.svelte"
|
||||
parser: svelte-eslint-parser
|
||||
parserOptions:
|
||||
parser: "@typescript-eslint/parser"
|
||||
|
||||
env:
|
||||
browser: true
|
||||
es2017: true
|
||||
node: true
|
||||
|
||||
rules:
|
||||
strict: 2
|
||||
"@typescript-eslint/no-unused-vars":
|
||||
- "error"
|
||||
- argsIgnorePattern: '^_'
|
||||
"@typescript-eslint/strict-boolean-expressions":
|
||||
- 2
|
||||
- allowString: false
|
||||
allowNumber: false
|
||||
+1362
-54
File diff suppressed because it is too large
Load Diff
@@ -11,34 +11,41 @@
|
||||
"build": "npm run pre-build && vite build",
|
||||
"build-no-wasm": "npm run pre-build-no-wasm && vite build",
|
||||
"preview": "vite preview",
|
||||
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
||||
"format": "prettier --plugin-search-dir . --write ."
|
||||
|
||||
"lint": "npm run lint:prettier && npm run lint:eslint",
|
||||
"lint:prettier": "prettier . --check",
|
||||
"lint:eslint": "eslint src/**",
|
||||
|
||||
"format": "prettier . --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@material-design-icons/font": "^0.14.2",
|
||||
"@rollup/plugin-replace": "^5.0.1",
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/adapter-static": "^1.0.0-next.48",
|
||||
"@sveltejs/kit": "next",
|
||||
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
||||
"@typescript-eslint/parser": "^5.27.0",
|
||||
"beercss": "^2.3.0",
|
||||
"cross-env": "7.0.3",
|
||||
"eslint": "^8.16.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-svelte3": "^4.0.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-plugin-html": "^7.1.0",
|
||||
"eslint-plugin-prettier": "^5.0.1",
|
||||
"eslint-plugin-svelte": "^2.34.1",
|
||||
"fs-extra": "^11.1.0",
|
||||
"guid-typescript": "^1.0.9",
|
||||
"prettier": "^2.6.2",
|
||||
"prettier-plugin-svelte": "^2.7.0",
|
||||
"@material-design-icons/font": "^0.14.2",
|
||||
"prettier": "^3.0.3",
|
||||
"prettier-plugin-svelte": "^3.0.3",
|
||||
"@rollup/plugin-replace": "^5.0.1",
|
||||
"rxjs": "^6.6.7",
|
||||
"svelte": "^3.44.0",
|
||||
"svelte-check": "^2.7.1",
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/adapter-static": "^1.0.0-next.48",
|
||||
"@sveltejs/kit": "next",
|
||||
"svelte-preprocess": "^4.10.6",
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "^4.7.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
||||
"@typescript-eslint/parser": "^5.27.0",
|
||||
"vite": "^3.2.7",
|
||||
"vite-plugin-top-level-await": "^1.2.2",
|
||||
"vite-plugin-wasm": "^3.1.0"
|
||||
|
||||
Reference in New Issue
Block a user