Skip to content

Commit 2af50df

Browse files
committed
chore: move eslint and pre-commit to the root package
1 parent 0b853ae commit 2af50df

11 files changed

Lines changed: 44 additions & 103 deletions

File tree

apps/react-demo/.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"parserOptions": { "project": "./tsconfig.json" }
4+
}

apps/react-demo/package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,10 @@
3535
"@types/react": "^18.0.18",
3636
"@types/react-dom": "^18.0.6",
3737
"@types/styled-components": "^5.1.24",
38-
"@typescript-eslint/eslint-plugin": "^5.12.1",
39-
"@typescript-eslint/parser": "^5.12.1",
40-
"eslint": "^8.9.0",
41-
"eslint-config-airbnb": "^19.0.4",
42-
"eslint-config-airbnb-typescript": "^16.1.0",
43-
"eslint-config-prettier": "^8.4.0",
44-
"eslint-plugin-import": "^2.25.4",
45-
"eslint-plugin-jsx-a11y": "^6.5.1",
46-
"eslint-plugin-react": "^7.29.4",
47-
"eslint-plugin-react-hooks": "^4.4.0",
4838
"file-loader": "^6.2.0",
4939
"html-webpack-plugin": "^5.5.0",
5040
"jest": "^29.7.0",
5141
"jest-environment-jsdom": "^29.7.0",
52-
"pre-commit": "^1.2.2",
5342
"prettier": "^2.5.1",
5443
"react": "^18.2.0",
5544
"react-dom": "^18.2.0",
@@ -60,8 +49,5 @@
6049
"webpack": "^5.69.1",
6150
"webpack-cli": "^4.9.2",
6251
"webpack-dev-server": "^4.7.4"
63-
},
64-
"pre-commit": [
65-
"eslint"
66-
]
52+
}
6753
}

package-lock.json

Lines changed: 10 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,27 @@
1818
"start": "turbo start",
1919
"build": "turbo build",
2020
"test": "turbo test",
21+
"lint": "turbo run eslint",
2122
"changeset": "changeset",
2223
"changeset:version": "changeset version",
2324
"changeset:publish": "changeset publish"
2425
},
2526
"devDependencies": {
2627
"@changesets/cli": "^2.29.0",
2728
"@changesets/changelog-github": "^0.5.2",
29+
"@typescript-eslint/eslint-plugin": "^5.12.1",
30+
"@typescript-eslint/parser": "^5.12.1",
31+
"eslint": "^8.9.0",
32+
"eslint-config-airbnb": "^19.0.4",
33+
"eslint-config-airbnb-typescript": "^16.1.0",
34+
"eslint-config-prettier": "^8.4.0",
35+
"eslint-plugin-import": "^2.25.4",
36+
"eslint-plugin-jsx-a11y": "^6.5.1",
37+
"eslint-plugin-react": "^7.29.4",
38+
"eslint-plugin-react-hooks": "^4.4.0",
2839
"pre-commit": "^1.2.2",
2940
"prettier": "^2.5.1",
3041
"turbo": "^2.0.0"
31-
}
42+
},
43+
"pre-commit": ["lint"]
3244
}

packages/core/.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"parserOptions": { "project": "./tsconfig.json" }
4+
}

packages/core/package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,16 @@
3535
"devDependencies": {
3636
"@types/jest": "^29.5.12",
3737
"@types/lodash": "^4.14.179",
38-
"@typescript-eslint/eslint-plugin": "^5.12.1",
39-
"@typescript-eslint/parser": "^5.12.1",
40-
"eslint": "^8.9.0",
41-
"eslint-config-airbnb": "^19.0.4",
42-
"eslint-config-airbnb-typescript": "^16.1.0",
43-
"eslint-config-prettier": "^8.4.0",
44-
"eslint-plugin-import": "^2.25.4",
45-
"eslint-plugin-jsx-a11y": "^6.5.1",
46-
"eslint-plugin-react": "^7.29.4",
47-
"eslint-plugin-react-hooks": "^4.4.0",
4838
"file-loader": "^6.2.0",
4939
"html-webpack-plugin": "^5.5.0",
5040
"jest": "^29.7.0",
5141
"jest-environment-jsdom": "^29.7.0",
52-
"pre-commit": "^1.2.2",
5342
"prettier": "^2.5.1",
5443
"ts-loader": "^9.2.6",
5544
"ts-jest": "^29.1.4",
5645
"typescript": "^4.5.5",
5746
"webpack": "^5.69.1",
5847
"webpack-cli": "^4.9.2",
5948
"webpack-dev-server": "^4.7.4"
60-
},
61-
"pre-commit": [
62-
"eslint"
63-
]
49+
}
6450
}

packages/legacy/.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"parserOptions": { "project": "./tsconfig.json" }
4+
}

packages/legacy/package.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,10 @@
3535
"@noriginmedia/norigin-spatial-navigation-react": "^2.3.0"
3636
},
3737
"devDependencies": {
38-
"@typescript-eslint/eslint-plugin": "^5.12.1",
39-
"@typescript-eslint/parser": "^5.12.1",
40-
"eslint": "^8.9.0",
41-
"eslint-config-airbnb": "^19.0.4",
42-
"eslint-config-airbnb-typescript": "^16.1.0",
43-
"eslint-config-prettier": "^8.4.0",
44-
"eslint-plugin-import": "^2.25.4",
45-
"eslint-plugin-jsx-a11y": "^6.5.1",
46-
"eslint-plugin-react": "^7.29.4",
47-
"eslint-plugin-react-hooks": "^4.4.0",
4838
"file-loader": "^6.2.0",
4939
"ts-loader": "^9.2.6",
5040
"ts-jest": "^29.1.4",
5141
"typescript": "^4.5.5",
5242
"webpack": "^5.69.1"
53-
},
54-
"pre-commit": [
55-
"eslint"
56-
]
43+
}
5744
}

packages/react/.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"parserOptions": { "project": "./tsconfig.json" }
4+
}

packages/react/package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,8 @@
4242
"@types/react": "^18.0.18",
4343
"@types/react-dom": "^18.0.6",
4444
"@types/styled-components": "^5.1.24",
45-
"@typescript-eslint/eslint-plugin": "^5.12.1",
46-
"@typescript-eslint/parser": "^5.12.1",
47-
"eslint": "^8.9.0",
48-
"eslint-config-airbnb": "^19.0.4",
49-
"eslint-config-airbnb-typescript": "^16.1.0",
50-
"eslint-config-prettier": "^8.4.0",
51-
"eslint-plugin-import": "^2.25.4",
52-
"eslint-plugin-jsx-a11y": "^6.5.1",
53-
"eslint-plugin-react": "^7.29.4",
54-
"eslint-plugin-react-hooks": "^4.4.0",
5545
"file-loader": "^6.2.0",
5646
"html-webpack-plugin": "^5.5.0",
57-
"pre-commit": "^1.2.2",
5847
"prettier": "^2.5.1",
5948
"react": "^18.2.0",
6049
"react-dom": "^18.2.0",
@@ -64,8 +53,5 @@
6453
"webpack": "^5.69.1",
6554
"webpack-cli": "^4.9.2",
6655
"webpack-dev-server": "^4.7.4"
67-
},
68-
"pre-commit": [
69-
"eslint"
70-
]
56+
}
7157
}

0 commit comments

Comments
 (0)