1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- {
- "parser": "@typescript-eslint/parser",
- "plugins": [
- "@typescript-eslint"
- ],
- "extends": [
- "wagtail",
- "plugin:@typescript-eslint/recommended"
- ],
- "env": {
- "jest": true
- },
- "settings": {
- "import/resolver": {
- "webpack": {
- "config": "client/webpack.config.js"
- }
- }
- },
- "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"
- },
- "overrides": [
- {
- // Rules we don’t want to enforce for test and tooling code.
- "files": ["*.test.ts", "*.test.tsx", "*.test.js", "webpack.config.js"],
- "rules": {
- "@typescript-eslint/no-empty-function": "off",
- "@typescript-eslint/no-var-requires": "off"
- }
- }
- ]
- }
|