Skip to content

Commit

Permalink
Added eslint-plugin-svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Sep 21, 2022
1 parent 81691d7 commit 563b5a9
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
parser: "@typescript-eslint/parser",
project: "./tsconfig.json",
sourceType: "script",
extraFileExtensions: [".svelte"],
},
env: {
browser: true,
Expand All @@ -15,7 +16,9 @@ module.exports = {
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:svelte/recommended",
"plugin:prettier/recommended",
"plugin:svelte/prettier",
],
rules: {
"deprecation/deprecation": "warn",
Expand Down Expand Up @@ -64,6 +67,16 @@ module.exports = {
"@typescript-eslint/no-non-null-assertion": "off",
},
overrides: [
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
rules: {
"deprecation/deprecation": "off",
},
},
{
parserOptions: {
project: null,
Expand Down
223 changes: 223 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"eslint-plugin-deprecation": "^1.3.2",
"eslint-plugin-jest": "^27.0.4",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-svelte": "^2.8.0",
"gas-webpack-plugin": "^2.3.0",
"gulp": "^4.0.2",
"gulp-filter": "^7.0.0",
Expand Down

0 comments on commit 563b5a9

Please sign in to comment.