chore: fix eslint crashing issues (#1951)

This commit is contained in:
Mo
2022-11-04 17:09:54 -05:00
committed by GitHub
parent 5aa36ff071
commit 417c90a6f2
118 changed files with 315 additions and 424 deletions

View File

@@ -1,9 +0,0 @@
node_modules
dist
test
*.config.js
mocha/**/*
coverage
e2e-server.js
jest-global.ts
webpack.*.js

View File

@@ -1,9 +0,0 @@
{
"extends": "../../.eslintrc.json",
"parserOptions": {
"project": "./linter.tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": ["warn", { "ignoreRestArgs": true }]
}
}

View File

@@ -0,0 +1,9 @@
module.exports = {
root: true,
extends: ['../../common.eslintrc.js'],
parserOptions: {
project: './lib/tsconfig.json',
tsconfigRootDir: __dirname,
},
ignorePatterns: ['**/*.spec.ts'],
}

View File

@@ -1,22 +0,0 @@
{
"source": {
"includePattern": ".+\\.js(doc|x)?$",
"include": ["lib"],
"exclude": ["node_modules"]
},
"recurseDepth": 10,
"opts": {
"destination": "./docs/",
"recurse": true,
"template": "node_modules/docdash"
},
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc", "closure"]
},
"docdash": {
"meta": {
"title": "SNJS Documentation"
}
}
}

View File

@@ -24,7 +24,7 @@
"build": "yarn tsc && webpack --config webpack.prod.js",
"docs": "jsdoc -c jsdoc.json",
"tsc": "tsc --project lib/tsconfig.json && tscpaths -p lib/tsconfig.json -s lib -o dist/@types",
"lint": "yarn lint:tsc && yarn lint:eslint",
"lint": "yarn lint:eslint lib",
"lint:eslint": "eslint --ext .ts lib/",
"lint:fix": "eslint --fix --ext .ts lib/",
"lint:tsc": "tsc --noEmit --emitDeclarationOnly false --project lib/tsconfig.json",