Skip to content

Commit

Permalink
build: change typescript eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
umaim committed May 20, 2019
1 parent df5d6a3 commit 35d7e10
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 60 deletions.
15 changes: 11 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"extends": ["taro"],
"extends": [
"taro"
],
"rules": {
"no-unused-vars": ["error", {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"varsIgnorePattern": "Taro"
}],
"taro/this-props-function": "off",
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx", ".tsx"]
}]
}],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "error"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -15,5 +21,6 @@
},
"useJSXTextNode": true,
"project": "./tsconfig.json"
}
},
"plugins": ["@typescript-eslint"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"@tarojs/webpack-runner": "1.2.26",
"@types/react": "^16.4.8",
"@types/webpack-env": "^1.13.6",
"@typescript-eslint/parser": "^1.6.0",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"babel-eslint": "^8.2.3",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
Expand Down
Loading

0 comments on commit 35d7e10

Please sign in to comment.