Skip to content

Commit 433cd59

Browse files
Simplified ESLint patch
1 parent 1a97ba4 commit 433cd59

File tree

7 files changed

+885
-550
lines changed

7 files changed

+885
-550
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": [
3-
"./src/index.js"
3+
"./src/config.js"
44
]
5-
}
5+
}

eslint-config-ringcentral-typescript/package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,40 @@
22
"name": "eslint-config-ringcentral-typescript",
33
"version": "1.0.0",
44
"description": "",
5-
"main": "src/index.js",
6-
"bin": {
7-
"rc-eslint-patch": "./src/bin/rc-eslint-patch.js"
8-
},
5+
"main": "src/config.js",
96
"scripts": {
107
"test": "yarn lint 'src/**/*.{js*,ts*}'",
118
"lint": "eslint --cache --cache-location .eslint/cache --fix --quiet"
129
},
1310
"dependencies": {
14-
"@typescript-eslint/eslint-plugin": "4.4.1",
15-
"@typescript-eslint/parser": "4.4.1",
11+
"@rushstack/eslint-patch": "1.0.6",
12+
"@typescript-eslint/eslint-plugin": "4.12.0",
13+
"@typescript-eslint/parser": "4.12.0",
1614
"babel-eslint": "10.1.0",
17-
"eslint": "7.11.0",
18-
"eslint-config-prettier": "6.12.0",
19-
"eslint-config-react-app": "5.2.1",
15+
"eslint-config-prettier": "7.1.0",
16+
"eslint-config-react-app": "6.0.0",
2017
"eslint-config-ringcentral": "1.0.0",
2118
"eslint-import-resolver-node": "0.3.4",
2219
"eslint-plugin-flowtype": "5.2.0",
2320
"eslint-plugin-import": "2.22.1",
24-
"eslint-plugin-jsx-a11y": "6.3.1",
25-
"eslint-plugin-prettier": "3.1.4",
26-
"eslint-plugin-react": "7.21.4",
27-
"eslint-plugin-react-hooks": "4.1.2",
21+
"eslint-plugin-jest": "24.1.3",
22+
"eslint-plugin-jsx-a11y": "6.4.1",
23+
"eslint-plugin-prettier": "3.3.1",
24+
"eslint-plugin-react": "7.22.0",
25+
"eslint-plugin-react-hooks": "4.2.0",
26+
"eslint-plugin-testing-library": "3.10.1",
2827
"eslint-plugin-ringcentral": "1.0.0",
2928
"eslint-plugin-sonarjs": "0.5.0",
30-
"prettier": "2.1.2",
31-
"typescript": "4.0.3"
29+
"prettier": "2.2.1"
3230
},
3331
"peerDependencies": {
34-
"eslint": "7.11.0",
32+
"eslint": "*",
3533
"typescript": "*"
3634
},
3735
"devDependencies": {
38-
"react": "^16.13.1"
36+
"eslint": "7.17.0",
37+
"react": "16.13.1",
38+
"typescript": "4.0.3"
3939
},
4040
"repository": {
4141
"type": "git",

eslint-config-ringcentral-typescript/src/bin/rc-eslint-patch.js

-16
This file was deleted.

eslint-config-ringcentral-typescript/src/bin/rc-eslint.js

-4
This file was deleted.

eslint-config-ringcentral-typescript/src/config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require('@rushstack/eslint-patch/modern-module-resolution');
2+
13
module.exports = {
24
root: true,
35
plugins: ['prettier'], //FIXME [UIA-10000] Remove
@@ -15,7 +17,7 @@ module.exports = {
1517
'plugin:import/typescript',
1618
],
1719
rules: {
18-
'curly': 'error',
20+
curly: 'error',
1921
'prettier/prettier': [
2022
'error',
2123
{

eslint-config-ringcentral-typescript/src/index.js

-31
This file was deleted.

0 commit comments

Comments
 (0)