mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-04 13:37:43 +03:00
feat: use eslint instead of tslint
This commit is contained in:
parent
50bd6aea61
commit
08d8dce1e2
48
package.json
48
package.json
@ -12,6 +12,10 @@
|
||||
"build_dir": "build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^4.29.3",
|
||||
"@typescript-eslint/parser": "^4.29.3",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"mocha": "^6.0.0",
|
||||
"prettier": "2.3.2",
|
||||
"typedoc": "^0.21.6",
|
||||
@ -40,5 +44,47 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/esjeon/krohnkite/issues"
|
||||
},
|
||||
"homepage": "https://github.com/esjeon/krohnkite#readme"
|
||||
"homepage": "https://github.com/esjeon/krohnkite#readme",
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"ignorePatterns": [
|
||||
"/build"
|
||||
],
|
||||
"env": {
|
||||
"es6": true
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": "tsconfig.json",
|
||||
"sourceType": "module"
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||
"prettier"
|
||||
],
|
||||
"plugins": [
|
||||
"@typescript-eslint",
|
||||
"eslint-plugin-jsdoc",
|
||||
"eslint-plugin-prefer-arrow"
|
||||
],
|
||||
"rules": {
|
||||
"curly": "error",
|
||||
"@typescript-eslint/naming-convention": [
|
||||
"error",
|
||||
{
|
||||
"selector": [
|
||||
"variable"
|
||||
],
|
||||
"leadingUnderscore": "allow"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/prefer-for-of": "off",
|
||||
"one-var": "error",
|
||||
"max-classes-per-file": "off",
|
||||
"no-cond-assign": "error"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
14
tslint.json
14
tslint.json
@ -1,14 +0,0 @@
|
||||
{
|
||||
"defaultSeverity": "error",
|
||||
"extends": ["tslint:recommended"],
|
||||
"jsRules": {},
|
||||
"rules": {
|
||||
"curly": false,
|
||||
"max-classes-per-file": false,
|
||||
"no-conditional-assignment": false,
|
||||
"one-variable-per-declaration": false,
|
||||
"prefer-for-of": false,
|
||||
"variable-name": [true, "allow-leading-underscore"]
|
||||
},
|
||||
"rulesDirectory": []
|
||||
}
|
Loading…
Reference in New Issue
Block a user