Skip to content

Commit

Permalink
Fix Svelte linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Faizeau committed Dec 6, 2021
1 parent c95e20c commit 3bb86df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,19 @@
"build": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" NODE_ENV=production webpack",
"build-typings": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" NODE_ENV=production BUILD_TYPINGS=1 webpack",
"test": "cross-env TS_NODE_PROJECT=\"tsconfig-for-jasmine.json\" ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "node_modules/.bin/eslint src/ . --ext .ts,.svelte",
"fix": "node_modules/.bin/eslint --fix src/ . --ext .ts,.svelte",
"lint": "node_modules/.bin/eslint src/ tests/ --ext .ts,.svelte",
"fix": "node_modules/.bin/eslint --fix src/ tests/ --ext .ts,.svelte",
"precommit": "lint-staged",
"svelte-check-watch": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\" --watch",
"svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\"",
"pretty": "yarn prettier --write 'src/**/*.{ts,svelte}'",
"pretty-check": "yarn prettier --check 'src/**/*.{ts,svelte}'"
},
"lint-staged": {
"*.svelte": [
"yarn run svelte-check"
],
"*.{ts,svelte}": [
"yarn run svelte-check",
"yarn run fix",
"yarn run pretty"
]
Expand Down

0 comments on commit 3bb86df

Please sign in to comment.