Skip to content

Commit

Permalink
Include .github directory in linting
Browse files Browse the repository at this point in the history
The directory has to be explicitly unignored in the eslint config.
  • Loading branch information
Shadowfiend committed Oct 31, 2022
1 parent a30122c commit 3ddfd56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ module.exports = {
"extension-reload.js",
"**/validate/*.js",
"**/local-chain/**",
"!.github",
],
parser: "@typescript-eslint/parser",
parserOptions: {
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
# Ignore weblate json translation formatting
ui/_locales/**/*.json
ui/_locales/**/*.json
!.github
8 changes: 7 additions & 1 deletion .tsconfig-eslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"extends": "./tsconfig.json",
"include": [".eslintrc.js", "**/*.js", "**/*.ts", "**/*.tsx"],
"include": [
".eslintrc.js",
"**/*.js",
"**/*.ts",
"**/*.tsx",
".github/**/*.js"
],
"exclude": ["node_modules", "dist", "**/validate/*.js", "**/local-chain/**"]
}

0 comments on commit 3ddfd56

Please sign in to comment.