mirror of
https://github.com/hanzoai/team.git
synced 2026-11-01 07:55:31 +00:00
* Update ESLint and plugins * Move most channels-specific ESLint configuration into ESLint plugin * Add ESLint to types and client packages * Add ESLint to components package
46 lines
768 B
JSON
46 lines
768 B
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"plugin:@mattermost/react"
|
|
],
|
|
"plugins": [
|
|
"formatjs",
|
|
"no-only-tests"
|
|
],
|
|
"settings": {
|
|
"import/resolver": "webpack"
|
|
},
|
|
"rules": {
|
|
"react/prop-types": [
|
|
2,
|
|
{
|
|
"ignore": [
|
|
"location",
|
|
"history",
|
|
"component"
|
|
]
|
|
}
|
|
],
|
|
"react/no-unknown-property": [
|
|
2,
|
|
{
|
|
"ignore": [
|
|
"mask-type"
|
|
]
|
|
}
|
|
],
|
|
"react/style-prop-object": [2, {
|
|
"allow": ["Timestamp"]
|
|
}],
|
|
"formatjs/no-multiple-whitespaces": 2
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.test.*", "src/tests/**"],
|
|
"rules": {
|
|
"no-only-tests/no-only-tests": ["error", {"focus": ["only", "skip"]}]
|
|
}
|
|
}
|
|
]
|
|
}
|