Skip to content
Permalink
Browse files
tslintを破棄してeslintに移行
  • Loading branch information
parrot-studio committed Jun 28, 2020
1 parent bde4db9 commit 8c8a1becbd8d4479b92ad5b6f2477acc7cf9f2c3
Show file tree
Hide file tree
Showing 5 changed files with 680 additions and 147 deletions.

This file was deleted.

@@ -0,0 +1,79 @@
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"security"
],
"globals": {
"$": false,
"FastClick": false
},
"rules": {
"semi": [
"error",
"never"
],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"interface-name": "off",
"ordered-imports": "off",
"trailing-comma": "off",
"jsx-no-bind": "off",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"generator-star-spacing": "error",
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quotes": "error",
"rest-spread-spacing": "error",
"template-curly-spacing": "error",
"yield-star-spacing": "error"
},
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect"
},
"linkComponents": [
"Hyperlink",
{
"name": "Link",
"linkAttribute": "to"
}
]
}
}
@@ -38,18 +38,20 @@
"@types/react-bootstrap": "^0.32.19",
"@types/react-dom": "^16.8.5",
"@types/superagent": "^4.1.3",
"@typescript-eslint/eslint-plugin": "^3.4.0",
"@typescript-eslint/parser": "^3.4.0",
"compression-webpack-plugin": "^3.0.0",
"css-loader": "^3.2.0",
"eslint": "^7.3.1",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-security": "^1.4.0",
"file-loader": "^4.2.0",
"jest": "^24.9.0",
"mini-css-extract-plugin": "^0.8.0",
"node-sass": "^4.12.0",
"sass-loader": "^7.2.0",
"ts-jest": "^24.3.0",
"ts-loader": "^6.0.4",
"tslint": "^5.18.0",
"tslint-config-security": "^1.16.0",
"tslint-react": "^4.0.0",
"typescript": "^3.5.3",
"webpack": "^4.39.1",
"webpack-cli": "^3.3.6",
@@ -75,8 +77,8 @@
},
"scripts": {
"start": "webpack-dev-server --mode=development --hot",
"tslint": "tslint app/javascript/bundles/**/*.ts app/javascript/bundles/**/*.tsx",
"tslint:fix": "tslint app/javascript/bundles/**/*.ts app/javascript/bundles/**/*.tsx --fix",
"eslint": "eslint app/javascript/bundles/**/*.ts app/javascript/bundles/**/*.tsx",
"eslint:fix": "eslint app/javascript/bundles/**/*.ts app/javascript/bundles/**/*.tsx --fix",
"test": "jest",
"test:watch": "jest --watch",
"build": "rm -r ./public/packs; webpack --mode=development",

This file was deleted.

0 comments on commit 8c8a1be

Please sign in to comment.