Merge pull request #1625 from thecodingmachine/linting
Fix Svelte linting
This commit is contained in:
commit
a6a3a76491
@ -69,8 +69,8 @@
|
|||||||
"build": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" NODE_ENV=production webpack",
|
"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",
|
"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",
|
"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",
|
"lint": "node_modules/.bin/eslint src/ tests/ --ext .ts,.svelte",
|
||||||
"fix": "node_modules/.bin/eslint --fix src/ . --ext .ts,.svelte",
|
"fix": "node_modules/.bin/eslint --fix src/ tests/ --ext .ts,.svelte",
|
||||||
"precommit": "lint-staged",
|
"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-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\"",
|
"svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\"",
|
||||||
@ -78,8 +78,10 @@
|
|||||||
"pretty-check": "yarn prettier --check 'src/**/*.{ts,svelte}'"
|
"pretty-check": "yarn prettier --check 'src/**/*.{ts,svelte}'"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
"*.svelte": [
|
||||||
|
"yarn run svelte-check"
|
||||||
|
],
|
||||||
"*.{ts,svelte}": [
|
"*.{ts,svelte}": [
|
||||||
"yarn run svelte-check",
|
|
||||||
"yarn run fix",
|
"yarn run fix",
|
||||||
"yarn run pretty"
|
"yarn run pretty"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user