mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-06 04:22:30 -05:00
Frontent dev env (#247)
* Added frontend development files/environment * More items-categories related removals * Improvements in pages templates (inc. static pages) * Improvements in video player * Added empty home page message + cta * Updates in media, playlist and management pages * Improvements in material icons font loading * Replaced media & playlists links in frontend dev-env * frontend package version update * chnaged frontend dev url port * static files update * Changed default position of theme switcher * enabled frontend docker container
This commit is contained in:
36
frontend/packages/scripts/.eslintrc.js
Executable file
36
frontend/packages/scripts/.eslintrc.js
Executable file
@@ -0,0 +1,36 @@
|
||||
module.exports = {
|
||||
"extends": ["eslint:recommended"],
|
||||
"env": { "es6": true, "browser": true, "node": true },
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": 2018
|
||||
},
|
||||
"rules": {
|
||||
"indent": ["error", "tab"],
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"quotes": ["error", "single"],
|
||||
"semi": ["error", "always"],
|
||||
'no-empty': ["error", { "allowEmptyCatch": true }],
|
||||
'no-constant-condition': ["error", { "checkLoops": false }],
|
||||
},
|
||||
"overrides": [{
|
||||
"plugins": [ "@typescript-eslint" ],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"files": ["**/*.ts", "**/*.tsx"],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": { "jsx": true },
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module",
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"rules": {
|
||||
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
||||
"@typescript-eslint/no-var-requires": "off"
|
||||
},
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user