2018-10-25 12:38:32 +02:00
|
|
|
{
|
2021-07-01 12:35:09 +02:00
|
|
|
"root": true,
|
2020-10-21 15:07:01 +02:00
|
|
|
"extends": [
|
|
|
|
"standard",
|
|
|
|
"plugin:react/recommended"
|
|
|
|
],
|
2018-11-21 11:08:53 +01:00
|
|
|
"rules": {
|
2021-07-01 12:35:09 +02:00
|
|
|
"semi": ["error", "always"],
|
2022-09-26 15:23:07 +02:00
|
|
|
"no-use-before-define": "off",
|
|
|
|
"no-case-declarations": "off"
|
2018-11-21 11:32:50 +01:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"Application": true,
|
|
|
|
"angular": true,
|
2019-06-13 11:28:55 +02:00
|
|
|
"Fablab": true,
|
2020-10-26 16:38:17 +01:00
|
|
|
"moment": true,
|
2022-03-21 17:59:38 +01:00
|
|
|
"_": true,
|
|
|
|
"Humanize": true,
|
2022-04-19 16:52:05 +02:00
|
|
|
"GTM": true,
|
|
|
|
"$": true,
|
|
|
|
"KeyboardEvent": true
|
2020-05-20 15:16:55 +02:00
|
|
|
},
|
2022-05-24 17:55:19 +02:00
|
|
|
"plugins": ["html-erb", "fabmanager"],
|
2021-07-01 12:35:09 +02:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
|
|
"env": { "browser": true, "es6": true },
|
|
|
|
"extends": [
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": { "jsx": true },
|
|
|
|
"ecmaVersion": 2018,
|
|
|
|
"sourceType": "module",
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"plugins": ["@typescript-eslint", "react"],
|
|
|
|
"rules": {
|
|
|
|
"react/prop-types": "off"
|
|
|
|
}
|
|
|
|
},
|
2022-06-01 15:24:25 +02:00
|
|
|
{
|
|
|
|
"files": ["app/frontend/src/javascript/components/**/*.tsx"],
|
|
|
|
"rules": {
|
|
|
|
"import/no-default-export": "error",
|
2022-06-22 13:01:22 +02:00
|
|
|
"import/no-unused-modules": "error",
|
2022-06-01 16:44:48 +02:00
|
|
|
"fabmanager/component-class-named-as-component": ["error", { "ignoreAbstractKeyword": true }],
|
2022-06-15 14:02:43 +02:00
|
|
|
"fabmanager/component-named-like-file": "error",
|
2022-06-22 13:01:22 +02:00
|
|
|
"fabmanager/component-documentation": "warn",
|
|
|
|
"fabmanager/component-methods-documentation": "warn",
|
2022-06-15 18:03:00 +02:00
|
|
|
"fabmanager/no-bootstrap": "error",
|
2022-06-20 18:06:15 +02:00
|
|
|
"fabmanager/no-utilities": "error",
|
2022-06-21 12:09:56 +02:00
|
|
|
"fabmanager/scoped-translation": ["error", { "ignoreAbstractKeyword": false }]
|
2022-06-01 15:24:25 +02:00
|
|
|
}
|
|
|
|
},
|
2021-07-01 12:35:09 +02:00
|
|
|
{
|
|
|
|
"files": ["app/frontend/src/javascript/models/**/*.ts"],
|
|
|
|
"rules": {
|
|
|
|
"camelcase": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2018-10-25 12:38:32 +02:00
|
|
|
}
|
|
|
|
|