Skip to content

Commit

Permalink
maint: bump eslint and plugin versions, update tsconfig and eslint co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
modesty committed Dec 1, 2024
1 parent a05a803 commit 6c65abb
Show file tree
Hide file tree
Showing 4 changed files with 7,286 additions and 6,952 deletions.
32 changes: 23 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"ignorePatterns": ["/dist/", "/bin/", "/test/", "/node_modules/", "/base/", "/lib/pdfjs-code.js", "**/*.json"],
"rules": {
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
]
},
"ignorePatterns": ["/dist/", "/bin/", "/test/", "/node_modules/", "/base/", "/lib/pdfjs-code.js"],
"overrides": [{
"files": ["*.js", "*.ts"],
"rules": {
"files": ["*.js", "*.ts"],
"rules": {
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"@typescript-eslint/naming-convention": [
"error",
Expand Down Expand Up @@ -128,7 +142,7 @@
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
"prefer-template": ["error"]
}
}
}
}
]
}
Loading

0 comments on commit 6c65abb

Please sign in to comment.