The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/.eslintrc.json

70 lines
1.5 KiB

{
"extends": ["@rocket.chat/eslint-config", "plugin:you-dont-need-lodash-underscore/compatible"],
"globals": {
"__meteor_bootstrap__": false,
"__meteor_runtime_config__": false,
"Assets": false,
"chrome": false,
"jscolor": false
},
"plugins": ["react", "react-hooks"],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-no-undef": "error",
"react/jsx-fragments": ["error", "syntax"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useComponentDidUpdate)"
}
]
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"plugins": ["react"],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-no-undef": "error",
"react/jsx-fragments": ["error", "syntax"],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": {
"arguments": false
}
}
],
"@typescript-eslint/no-floating-promises": "error",
"no-unreachable-loop": "error"
},
"parserOptions": {
"project": ["./tsconfig.json"]
},
"excludedFiles": [".scripts/*.ts"],
"settings": {
"react": {
"version": "detect"
}
}
},
{
"files": ["**/*.tests.js", "**/*.tests.ts", "**/*.spec.ts"],
"env": {
"mocha": true
}
}
]
}