Skip to content

Commit

Permalink
Disable unused vars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Aug 30, 2022
1 parent 00bf008 commit b6e5b26
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 26 deletions.
75 changes: 55 additions & 20 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,29 @@
"error",
"always"
],

"no-undef": 0,

// Best practice
"eqeqeq": 2,
"curly": 2,
"dot-location": [2, "property"],
"dot-location": [
2,
"property"
],
"dot-notation": 2,
"no-alert": 2,
"object-shorthand": [2, "always"],
"no-console": ["error", { "allow": ["warn", "error"] }],

"object-shorthand": [
2,
"always"
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
// Style
"array-bracket-spacing": 2,
"brace-style": 2,
Expand All @@ -65,20 +76,46 @@
"no-lonely-if": 2,
"no-multiple-empty-lines": 2,
"no-tabs": 2,
"semi-style": [2, "last"],
"spaced-comment": [2, "always"],

"semi-style": [
2,
"last"
],
"spaced-comment": [
2,
"always"
],
// ES 6
"arrow-spacing": 2,
"no-var": 2,

// React
"jsx-quotes": [2, "prefer-single"],
"react/forbid-prop-types": [1, { "forbid": ["any"] }],
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"jsx-quotes": [
2,
"prefer-single"
],
"react/forbid-prop-types": [
1,
{
"forbid": [
"any"
]
}
],
"react/jsx-curly-spacing": [
2,
"never"
],
"react/jsx-equals-spacing": [
2,
"never"
],
"react/jsx-indent": [
2,
2
],
"react/jsx-indent-props": [
2,
2
],
"react/jsx-key": 1,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
Expand All @@ -97,17 +134,15 @@
"react/self-closing-comp": 2,
"node/no-unpublished-require": 0,
"node/no-unsupported-features/es-syntax": 0,

// Node
"node/no-unpublished-import": 0,

// Typescript
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/ban-types": 0
}
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"build:all": "lerna run build && cross-env NODE_OPTIONS='--max-old-space-size=8192' electron-builder -c.extraMetadata.main=dist/main.js -mwl"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babel-eslint": "^10.0.3",
"cross-env": "^7.0.3",
"electron": "^12.1.0",
Expand Down Expand Up @@ -211,4 +211,4 @@
"node-gyp": "^9.0.0",
"sqlite3": "^5.0.3"
}
}
}
2 changes: 1 addition & 1 deletion packages/main/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"node/no-missing-import": 0,
"node/no-extraneous-import": 0
}
}
}

0 comments on commit b6e5b26

Please sign in to comment.