mirror of
https://github.com/jellyfin/jellyfin-chromecast.git
synced 2024-11-23 05:59:50 +00:00
Always run Prettier via ESLint
This commit is contained in:
parent
83fa27dda6
commit
80c8c43d80
@ -9,7 +9,6 @@ module.exports = {
|
|||||||
'plugin:jsdoc/recommended',
|
'plugin:jsdoc/recommended',
|
||||||
'plugin:json/recommended',
|
'plugin:json/recommended',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
'prettier',
|
|
||||||
'plugin:prettier/recommended',
|
'plugin:prettier/recommended',
|
||||||
'plugin:promise/recommended',
|
'plugin:promise/recommended',
|
||||||
'plugin:import/errors',
|
'plugin:import/errors',
|
||||||
@ -30,7 +29,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
plugins: ['prettier', 'promise', 'import', 'jsdoc'],
|
plugins: ['promise', 'import', 'jsdoc'],
|
||||||
root: true,
|
root: true,
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/explicit-function-return-type': 'error',
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
dist/
|
|
||||||
node_modules/
|
|
||||||
package-lock.json
|
|
||||||
|
|
||||||
LICENSE.md
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"semi": true,
|
|
||||||
"singleQuote": true,
|
|
||||||
"tabWidth": 4,
|
|
||||||
"trailingComma": "none"
|
|
||||||
}
|
|
4
.prettierrc.yaml
Normal file
4
.prettierrc.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
semi: true
|
||||||
|
singleQuote: true
|
||||||
|
tabWidth: 4
|
||||||
|
trailingComma: none
|
@ -38,9 +38,8 @@
|
|||||||
"start": "vite",
|
"start": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"lint": "npm run lint:code && npm run lint:css && npm run prettier",
|
"lint": "npm run lint:code && npm run lint:css",
|
||||||
"lint:code": "eslint --ext .ts,.js,.json .",
|
"lint:code": "eslint --ext .ts,.js,.json .",
|
||||||
"lint:css": "stylelint src/**/*.css",
|
"lint:css": "stylelint src/**/*.css"
|
||||||
"prettier": "prettier --check ."
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user