Add .eslintrc.js

This commit is contained in:
c-bata
2021-02-10 21:38:48 +09:00
parent 10d8047b1c
commit fe88d2b883
3 changed files with 937 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
};
+921 -3
View File
File diff suppressed because it is too large Load Diff
+5 -2
View File
@@ -6,7 +6,7 @@
"main": "index.js",
"scripts": {
"fmt": "prettier --write \"optuna_dashboard/static/**/*.{ts,tsx}\"",
"lint": "prettier --list-different \"optuna_dashboard/static/**/*.{ts,tsx}\"",
"lint": "eslint . --ext .ts,.tsx && prettier --list-different \"optuna_dashboard/static/**/*.{ts,tsx}\"",
"watch": "webpack --watch",
"build": "webpack",
"build:dev": "NODE_ENV=development webpack",
@@ -31,9 +31,12 @@
"@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.6",
"@typescript-eslint/eslint-plugin": "^4.15.0",
"@typescript-eslint/parser": "^4.15.0",
"eslint": "^7.19.0",
"prettier": "^2.1.2",
"ts-loader": "^8.0.6",
"typescript": "^4.0.3",
"typescript": "^4.1.4",
"webpack": "^5.1.3",
"webpack-cli": "^4.1.0"
}