2016-02-24 11:44:14 +01:00
|
|
|
{
|
2016-06-17 15:48:33 +02:00
|
|
|
"extends": "wagtail",
|
|
|
|
|
|
|
|
"env": {
|
|
|
|
"jest": true
|
2017-02-12 16:29:56 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"webpack": {
|
2020-10-21 01:51:09 +02:00
|
|
|
"config": "webpack/prod.config.js"
|
2017-02-12 16:29:56 +01:00
|
|
|
}
|
|
|
|
}
|
2019-04-23 16:02:53 +02:00
|
|
|
},
|
2020-10-21 01:51:09 +02:00
|
|
|
|
2019-04-23 16:02:53 +02:00
|
|
|
"rules": {
|
|
|
|
"no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }]
|
2020-10-21 01:51:09 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx"],
|
|
|
|
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
"extends": [
|
|
|
|
"wagtail",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }],
|
|
|
|
|
|
|
|
// note you must disable the base rule as it can report incorrect errors
|
|
|
|
"no-use-before-define": "off",
|
|
|
|
"@typescript-eslint/no-use-before-define": ["error"],
|
|
|
|
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2016-02-24 11:44:14 +01:00
|
|
|
}
|