Skip to content

Commit 6affdde

Browse files
committed
chore(web-ts-results): add eslint and update .eslintrc
1 parent cc3a1a2 commit 6affdde

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

webdriver-ts-results/.eslintignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
webpack.config.js
2-
.eslintrc.js
3-
src/results.ts
1+
# Dependencies
2+
node_modules
3+
4+
# Build
5+
build/
6+
dist/
7+
plotly.*
8+
BoxPlotTable.*

webdriver-ts-results/.eslintrc.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
{
22
"env": {
33
"browser": true,
4-
"es6": true,
5-
"jest": true
4+
"es2023": true
65
},
76
"extends": [
87
"eslint:recommended",
98
"plugin:react/recommended",
9+
"plugin:react-hooks/recommended",
1010
"plugin:@typescript-eslint/recommended"
1111
],
12-
"plugins": ["react", "@typescript-eslint", "react-hooks"],
12+
"plugins": ["react", "@typescript-eslint"],
1313
"settings": {
1414
"react": {
15-
"pragma": "React",
1615
"version": "detect"
1716
}
18-
},
19-
"rules": {
20-
"@typescript-eslint/explicit-function-return-type": 0,
21-
"react-hooks/rules-of-hooks": "error",
22-
"react-hooks/exhaustive-deps": "warn",
23-
"no-debugger": "warn"
2417
}
2518
}

webdriver-ts-results/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webdriver-ts-results/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "react-scripts build",
1717
"test": "react-scripts test",
1818
"eject": "react-scripts eject",
19-
"lint": "eslint './src/**/*.{ts,tsx}'",
19+
"lint": "eslint src/",
2020
"build-prod": "rimraf --glob dist && cross-env NODE_ENV=\"production\" webpack --env prod && rimraf --glob table.html && rimraf --glob \"BoxPlotTable*.js\" && cpx dist/table.html . && cpx \"dist/BoxPlotTable*.js\" . && cpx \"dist/plotly*.js\" ."
2121
},
2222
"eslintConfig": {
@@ -43,6 +43,7 @@
4343
"@types/react-dom": "^18.2.7",
4444
"cpx": "1.5.0",
4545
"cross-env": "7.0.3",
46+
"eslint": "^8.47.0",
4647
"eslint-plugin-react-hooks": "^4.6.0",
4748
"html-webpack-plugin": "^5.5.0",
4849
"inline-chunk-html-plugin": "^1.1.1",

0 commit comments

Comments
 (0)