Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/.eslintrc.json

85 lines
2.0 KiB
JSON
Raw Normal View History

2022-05-17 11:10:20 +02:00
{
"ignorePatterns": ["vite.*.ts"],
"root": true,
"plugins": ["eslint-plugin-local-rules"],
"parserOptions": {
"ecmaVersion": "latest"
},
"env": {
"es6": true
},
"overrides": [
{
"files": ["**/*.ts"],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:wc/recommended",
"plugin:lit/recommended",
"plugin:lit-a11y/recommended",
"plugin:storybook/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./",
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"browser": true,
"es2021": true
},
"rules": {
"no-var": "error",
"import/no-unresolved": "off",
2022-09-09 16:43:48 +02:00
"import/order": "warn",
"local-rules/bad-type-import": "error",
"local-rules/no-direct-api-import": "warn",
2023-03-14 10:21:34 +01:00
"local-rules/prefer-import-aliases": "error",
"local-rules/enforce-element-suffix-on-element-class-name": "error",
"local-rules/umb-class-prefix": "error",
"local-rules/prefer-static-styles-last": "warn",
2023-05-25 15:11:37 +02:00
"local-rules/ensure-relative-import-use-js-extension": "error",
"@typescript-eslint/no-non-null-assertion": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
}
}
Feature/server packages v2 (#574) * new api models * use new PackageResource * do not error out on missing default exports (esmodules auto-execute) * do not check for js extensions (they might have been registered on the client without a js file) * prepend the api baseurl to any relataive server JS dependencies * ignore tsbuildinfo * create base file for tsconfig * extend from base config and optimise include/exclude paths * install rollup plugin to handle json files * use plugin to bundle json files * call script for cms builds that builds libs * add rollup config to utils lib * add a context token to the extension registry instance itself and provide it through BackofficeElement * add rollup node resolve * add node resolve * only include element mixin in element library * add error description to module load error * add types to UmbExtensionRegistry token * set UmbNotificationService as string in its token to avoid minification * correct comment * reverse order of checks * add host to server extensions and support life-cycle check * add imports * use lit rather than lit-html * correct comment * add PackageManifestModel * add import * run libs build for cms * revert reorder * use string name for NotificationContext token * make alias public readonly of UmbContextToken * remove TODO * use UmbContextToken::toString() for all stores * use string alias for contexts * move default data so we avoid importing a big lit library just to get default data interface * add rollup to two extra libraries * make sure we build uui and lit into our libraries for the few cases we import something * add lockfile * add separate options for .js files * add function to install types of module * add types output * remove unused tsconfig-base file for now
2023-03-02 20:29:20 +01:00
},
{
"files": ["**/*.js"],
"extends": ["eslint:recommended", "plugin:import/recommended", "prettier"],
"env": {
"node": true,
"browser": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js"],
"moduleDirectory": ["node_modules"]
}
}
}
}
]
}