Skip to content

Commit

Permalink
chore(config): update ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Aug 14, 2024
1 parent 8cada74 commit a114075
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .eslintrc-md.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"plugins": [
"markdown",
"react"
],
"plugins": ["markdown", "react"],
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
Expand All @@ -12,17 +9,26 @@
},
"settings": {
"react": {
"version": "16.4.0"
"version": "18"
}
},
"rules": {
"eol-last": 2,
"spaced-comment": 2,
"no-unused-vars": 0,
"no-this-before-super": 2,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-unknown-property": 2,
"react/jsx-no-undef": 2
}
}
"overrides": [
{
"files": ["**/*.md"],
"processor": "markdown/markdown"
},
{
"files": ["**/*.md/*.js", "**/*.md/*.jsx", "**/*.md/*.ts", "**/*.md/*.tsx"],
"rules": {
"eol-last": 2,
"spaced-comment": 2,
"no-unused-vars": 0,
"no-this-before-super": 2,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-unknown-property": 2,
"react/jsx-no-undef": 2
}
}
]
}
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down

0 comments on commit a114075

Please sign in to comment.