Skip to content

Commit

Permalink
provide Hound with its own legacy eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ashley authored and asrashley committed Oct 9, 2024
1 parent 91e9eca commit fa19372
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/hound/eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:vitest-globals/recommended"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"browser": true,
"es2022": true,
"vitest-globals/env": true
},
"globals": {
"vi": "readonly"
},
"plugins": [
"import",
"react",
"react-hooks"
],
"rules": {
"react/react-in-jsx-scope": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^React$"
}
],
"import/first": "error",
"import/no-amd": "error",
"import/no-anonymous-default-export": "warn",
"react/require-render-return": "error",
"import/no-named-as-default": "off"
},
"settings": {
"react": {
"version": "18"
},
"import/resolver": {
"node": {
"paths": [
"src"
],
"extensions": [
".js",
".jsx"
]
}
}
}
}
2 changes: 1 addition & 1 deletion .hound.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
eslint:
enabled: true
config_file: client/eslint.config.js
config_file: .github/hound/eslintrc.json

scss:
config_file: .scss-lint.yml

0 comments on commit fa19372

Please sign in to comment.