1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

tidy up eslint config

This commit is contained in:
Kim, Jimin 2023-07-27 11:29:01 +09:00
parent 10c21f3fa0
commit 996d4216bd
Signed by: pomp
GPG key ID: CE1DDB8A4A765403
2 changed files with 9 additions and 31 deletions

View file

@ -12,20 +12,21 @@ module.exports = {
overrides: [],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "@typescript-eslint"],
rules: {
"member-access": 0,
"prefer-const": "warn",
"semi": ["warn", "always"],
"quotes": "off",
"no-mixed-spaces-and-tabs": "warn",
"no-useless-escape": "warn",
"ordered-imports": 0,
"no-empty": "off",
quotemark: 0,
"no-fallthrough": "off",
"no-console": 0,
semicolon: 0,
"no-case-declarations": "off",
"no-console": "off",
// unused vars
"no-unused-vars": "off",
@ -38,6 +39,8 @@ module.exports = {
},
],
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-extra-semi": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-var-requires": "off",
@ -54,14 +57,12 @@ module.exports = {
],
// react, JSX related
"jsx-quotes": ["warn", "prefer-double"],
"react/jsx-key": "off",
"react/no-find-dom-node": "off",
"no-case-declarations": "off",
"react/no-unescaped-entities": "off",
"react/no-direct-mutation-state": "off",
"react/display-name": "off",
"jsx-no-lambda": 0,
"jsx-no-multiline-js": 0,
},
settings: {
react: {

View file

@ -1,23 +0,0 @@
{
"defaultSeverity": "error",
"extends": [
"tslint-react"
],
"jsRules": {
},
"rules": {
"member-access": false,
"ordered-imports": false,
"quotemark": false,
"no-console": false,
"semicolon": false,
"jsx-no-lambda": false,
"jsx-no-multiline-js": false
},
"rulesDirectory": [],
"linterOptions": {
"exclude": [
"node_modules/**/*"
]
}
}