Skip to content

Commit

Permalink
chore: update lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
sLeeNguyen committed Jan 30, 2022
1 parent 2170652 commit 762fdb8
Show file tree
Hide file tree
Showing 5 changed files with 347 additions and 38 deletions.
17 changes: 14 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react",
"plugin:@typescript-eslint/eslint-recommended"
"plugin:@typescript-eslint/eslint-recommended",
],
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true
Expand All @@ -29,6 +32,14 @@
"react/jsx-handler-names": 0,
"react/jsx-fragments": 0,
"react/no-unused-prop-types": 0,
"import/export": 0
"import/export": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error"
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"warn"
]
}
}
}
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"printWidth": 100,
"printWidth": 120,
"singleQuote": true,
"jsxSingleQuote": true,
"semi": false,
"semi": true,
"tabWidth": 2,
"bracketSpacing": true,
"jsxBracketSameLine": false,
Expand Down
10 changes: 9 additions & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"target": "es5",
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": ["src"],
"exclude": ["node_modules", "build"]
Expand Down
Loading

0 comments on commit 762fdb8

Please sign in to comment.