2022-05-17 11:10:20 +02:00
|
|
|
{
|
2022-08-11 13:24:29 +02:00
|
|
|
"ignorePatterns": ["vite.*.ts"],
|
|
|
|
|
"root": true,
|
2023-01-11 16:22:59 +01:00
|
|
|
"plugins": ["eslint-plugin-local-rules"],
|
2023-04-04 13:19:19 +02:00
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaVersion": "latest"
|
|
|
|
|
},
|
|
|
|
|
"env": {
|
|
|
|
|
"es6": true
|
|
|
|
|
},
|
2022-08-11 13:24:29 +02:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"files": ["**/*.ts"],
|
|
|
|
|
"extends": [
|
|
|
|
|
"eslint:recommended",
|
|
|
|
|
"plugin:import/recommended",
|
|
|
|
|
"plugin:import/typescript",
|
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
2023-01-11 16:22:59 +01:00
|
|
|
"plugin:wc/recommended",
|
2022-08-11 13:24:29 +02:00
|
|
|
"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",
|
2023-02-09 17:14:11 +01:00
|
|
|
"import/no-unresolved": "off",
|
2022-09-09 16:43:48 +02:00
|
|
|
"import/order": "warn",
|
2023-01-03 15:51:37 +01:00
|
|
|
"local-rules/bad-type-import": "error",
|
2023-01-11 16:22:59 +01:00
|
|
|
"local-rules/no-direct-api-import": "warn",
|
2023-03-14 10:21:34 +01:00
|
|
|
"local-rules/prefer-import-aliases": "error",
|
2023-03-29 17:56:39 +02:00
|
|
|
"local-rules/enforce-element-suffix-on-element-class-name": "error",
|
2023-04-16 20:27:07 +02:00
|
|
|
"local-rules/umb-class-prefix": "error",
|
2023-04-21 14:01:09 +02:00
|
|
|
"local-rules/prefer-static-styles-last": "warn",
|
2023-05-25 15:11:37 +02:00
|
|
|
"local-rules/ensure-relative-import-use-js-extension": "error",
|
2023-01-11 16:22:59 +01:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off"
|
2022-08-11 13:24:29 +02:00
|
|
|
},
|
|
|
|
|
"settings": {
|
|
|
|
|
"import/parsers": {
|
|
|
|
|
"@typescript-eslint/parser": [".ts"]
|
|
|
|
|
},
|
|
|
|
|
"import/resolver": {
|
|
|
|
|
"typescript": {
|
|
|
|
|
"alwaysTryTypes": true,
|
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
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"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-08-11 13:24:29 +02:00
|
|
|
}
|
|
|
|
|
]
|
2022-07-01 11:38:44 +02:00
|
|
|
}
|