chore: fix eslint crashing issues (#1951)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
node_modules
|
||||
dist
|
||||
test
|
||||
*.config.js
|
||||
mocha/**/*
|
||||
coverage
|
||||
e2e-server.js
|
||||
jest-global.ts
|
||||
webpack.*.js
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"extends": "../../.eslintrc.json",
|
||||
"parserOptions": {
|
||||
"project": "./linter.tsconfig.json"
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/no-explicit-any": ["warn", { "ignoreRestArgs": true }]
|
||||
}
|
||||
}
|
||||
9
packages/snjs/.eslintrc.js
Normal file
9
packages/snjs/.eslintrc.js
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['../../common.eslintrc.js'],
|
||||
parserOptions: {
|
||||
project: './lib/tsconfig.json',
|
||||
tsconfigRootDir: __dirname,
|
||||
},
|
||||
ignorePatterns: ['**/*.spec.ts'],
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user