Skip to content

Commit

Permalink
fix: no used vars
Browse files Browse the repository at this point in the history
  • Loading branch information
0xycvv committed Mar 23, 2021
1 parent c476a67 commit 6955a60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
18 changes: 10 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ module.exports = {
es6: true,
browser: true,
},
plugins: ['@typescript-eslint'],
plugins: ["@typescript-eslint"],
extends: ["airbnb", "airbnb/hooks", "prettier"],
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"],
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".d.ts"],
}
}
node: {
extensions: [".js", ".jsx", ".ts", ".tsx", ".json", ".d.ts"],
},
},
},
rules: {
"react/react-in-jsx-scope": "off",
"import/extensions": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/forbid-prop-types": [1, { forbid: ["any"] }],
"react/prop-types": ["error", { ignore: ["children"] }],
"react/jsx-filename-extension": 0,
Expand All @@ -34,10 +36,10 @@ module.exports = {
},
overrides: [
{
files: ['**/*.tsx'],
files: ["**/*.tsx"],
rules: {
'react/prop-types': 'off',
"react/prop-types": "off",
},
},
]
],
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binance-academy/eslint-config-bnb-ts",
"version": "0.0.1",
"version": "1.0.0",
"description": "Custom set of ESLint rules for React and Nextjs based on Airbnb ESLint config",
"main": "index.js",
"repository": "https://github.com/binance-academy/eslint-config-bnb-ts",
Expand Down Expand Up @@ -35,5 +35,8 @@
"eslint-plugin-react-hooks": "4.0.8",
"prettier": "^2.0.5",
"typescript": "^4.0.0"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 6955a60

Please sign in to comment.