Skip to content

Commit e63cac2

Browse files
committed
.eslintrc.js: remove rush specific stuff, remove unused typescript eslint packages and extend react-app eslint rules
1 parent f0a28b2 commit e63cac2

File tree

4 files changed

+9130
-4000
lines changed

4 files changed

+9130
-4000
lines changed

Diff for: .eslintrc.js

+11-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require("@rushstack/eslint-config/patch/modern-module-resolution")
1+
// Copyright 2022 MFB Technologies, Inc.
32

43
module.exports = {
54
extends: [
6-
"@rushstack/eslint-config/profile/web-app",
7-
"@rushstack/eslint-config/mixins/react"
5+
"react-app"
86
],
9-
rules: {
10-
"@typescript-eslint/no-explicit-any": 0,
11-
"@typescript-eslint/consistent-type-definitions": [1, "type"],
12-
"@typescript-eslint/typedef": 0,
13-
"@rushstack/no-new-null": 0,
14-
"@rushstack/typedef-var": 0
15-
},
16-
parserOptions: { tsconfigRootDir: __dirname },
17-
settings: {
18-
react: {
19-
version: "17.0"
7+
overrides: [
8+
{
9+
files: ["**/*.ts?(x)"],
10+
rules: {
11+
"@typescript-eslint/no-explicit-any": 0,
12+
"@typescript-eslint/consistent-type-definitions": [1, "type"],
13+
"@typescript-eslint/typedef": 0,
14+
}
2015
}
21-
}
16+
]
2217
}

0 commit comments

Comments
 (0)