1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/.eslintrc

54 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-10-25 12:38:32 +02:00
{
2021-07-01 12:35:09 +02:00
"root": true,
"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"],
"no-use-before-define": "off"
2018-11-21 11:32:50 +01:00
},
"globals": {
"Application": true,
"angular": true,
2019-06-13 11:28:55 +02:00
"Fablab": true,
"moment": true,
"_": true
},
2021-07-01 12:35:09 +02:00
"plugins": ["lint-erb"],
"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"
}
},
{
"files": ["app/frontend/src/javascript/models/**/*.ts"],
"rules": {
"camelcase": "off"
}
}
]
2018-10-25 12:38:32 +02:00
}