From 6a0a70c8181d7f568ab2e39a7479023719b46baa Mon Sep 17 00:00:00 2001 From: umaranis Date: Mon, 16 Jan 2023 22:45:49 +1100 Subject: [PATCH] build: eslint update --- .eslintignore | 13 +++++++++++++ .vscode/settings.json | 5 ++++- demos/playground/.eslintignore | 1 + demos/playground/package.json | 1 + packages/svelte-lexical/.eslintignore | 2 ++ packages/svelte-lexical/package.json | 4 +++- 6 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .eslintignore create mode 100644 demos/playground/.eslintignore create mode 100644 packages/svelte-lexical/.eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3f51617 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +packages/**/dist/*.js +packages/**/build/*.js +packages/**/npm/**/* +packages/**/config/*.js +packages/playwright +packages/playwright-core +packages/**/vite.config.js +packages/**/vite.prod.config.js +**/*.md +**/node_modules +flow-typed +.github/CODEOWNERS +.prettierignore diff --git a/.vscode/settings.json b/.vscode/settings.json index 8dcd6ec..908547a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,8 @@ "eslint.validate": ["javascript", "javascriptreact", "svelte"], "files.eol": "\n", "prettier.singleQuote": true, - "editor.formatOnSave": true + "editor.formatOnSave": true, + "svelte.plugin.svelte.compilerWarnings": { + "a11y-no-noninteractive-tabindex": "ignore" + } } diff --git a/demos/playground/.eslintignore b/demos/playground/.eslintignore new file mode 100644 index 0000000..838458f --- /dev/null +++ b/demos/playground/.eslintignore @@ -0,0 +1 @@ +/dist/ \ No newline at end of file diff --git a/demos/playground/package.json b/demos/playground/package.json index e6d6564..a580ae7 100644 --- a/demos/playground/package.json +++ b/demos/playground/package.json @@ -8,6 +8,7 @@ "build": "vite build", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", + "lint": "eslint .", "test-e2e-ci:chromium": "cross-env E2E_PORT=4000 start-server-and-test prepare-ci 4000 test-e2e:chromium", "test-e2e-ci:firefox": "cross-env E2E_PORT=4000 start-server-and-test prepare-ci 4000 test-e2e:firefox", "test-e2e-ci:webkit": "cross-env E2E_PORT=4000 start-server-and-test prepare-ci 4000 test-e2e:webkit", diff --git a/packages/svelte-lexical/.eslintignore b/packages/svelte-lexical/.eslintignore new file mode 100644 index 0000000..7bfa7e9 --- /dev/null +++ b/packages/svelte-lexical/.eslintignore @@ -0,0 +1,2 @@ +/dist/ +rollup.config.js \ No newline at end of file diff --git a/packages/svelte-lexical/package.json b/packages/svelte-lexical/package.json index d5b60bf..e56fcf0 100644 --- a/packages/svelte-lexical/package.json +++ b/packages/svelte-lexical/package.json @@ -15,7 +15,9 @@ "build": "rollup -c", "prepublishOnly": "npm run build", "test": "jest src", - "test:watch": "npm run test -- --watch" + "test:watch": "npm run test -- --watch", + "lint": "eslint .", + "svelte-check": "svelte-check" }, "devDependencies": { "@babel/core": "^7.20.5",