Fix a couple things
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
f8077b2e54
commit
932fb0b0b7
220
.eslintrc
220
.eslintrc
|
@ -1,120 +1,118 @@
|
||||||
{
|
{
|
||||||
"env": {
|
"env": {
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"amd": true,
|
"amd": true,
|
||||||
"browser": true
|
"browser": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"root": true,
|
"root": true,
|
||||||
"ignorePatterns": ["docs/", "dist/", "out/", "rethinkdb_data/", "node_modules/", "bulmaselect/"],
|
"ignorePatterns": ["docs/", "dist/", "out/", "rethinkdb_data/", "node_modules/", "bulmaselect/"],
|
||||||
|
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"ecmaVersion": 2020
|
"ecmaVersion": 2020
|
||||||
},
|
},
|
||||||
|
|
||||||
"extends": ["eslint:recommended"],
|
"extends": ["eslint:recommended"],
|
||||||
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"arrow-parens": [1, "always"],
|
"arrow-parens": [1, "always"],
|
||||||
"block-spacing": [1, "always"],
|
"block-spacing": [1, "always"],
|
||||||
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
|
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
|
||||||
"comma-dangle": [1, "always-multiline"],
|
"comma-dangle": [1, "always-multiline"],
|
||||||
"comma-spacing": [1, { "before": false, "after": true }],
|
"comma-spacing": [1, { "before": false, "after": true }],
|
||||||
"comma-style": [1, "last"],
|
"comma-style": [1, "last"],
|
||||||
"computed-property-spacing": [1, "never"],
|
"computed-property-spacing": [1, "never"],
|
||||||
"consistent-this": [1, "self"],
|
"consistent-this": [1, "self"],
|
||||||
"eol-last": 1,
|
"eol-last": 1,
|
||||||
"eqeqeq": [1, "smart"],
|
"eqeqeq": [1, "smart"],
|
||||||
"no-inline-comments": 1,
|
"no-inline-comments": 1,
|
||||||
"jsx-quotes": [1, "prefer-double"],
|
"jsx-quotes": [1, "prefer-double"],
|
||||||
"lines-around-comment": [1, { "beforeBlockComment": false }],
|
"lines-around-comment": [1, { "beforeBlockComment": false }],
|
||||||
"max-depth": [1, 8],
|
"max-depth": [1, 8],
|
||||||
"max-nested-callbacks": [1, 8],
|
"max-nested-callbacks": [1, 8],
|
||||||
"new-parens": 1,
|
"new-parens": 1,
|
||||||
"no-array-constructor": 1,
|
"no-array-constructor": 1,
|
||||||
"no-lonely-if": 1,
|
"no-lonely-if": 1,
|
||||||
"no-mixed-spaces-and-tabs": 1,
|
"no-mixed-spaces-and-tabs": 1,
|
||||||
"no-multiple-empty-lines": 1,
|
"no-multiple-empty-lines": 1,
|
||||||
"no-new-object": 1,
|
"no-new-object": 1,
|
||||||
"no-spaced-func": 1,
|
"no-spaced-func": 1,
|
||||||
"no-trailing-spaces": 1,
|
"no-trailing-spaces": 1,
|
||||||
"no-return-await": 1,
|
"no-return-await": 1,
|
||||||
"no-undef": 0,
|
"no-undef": 0,
|
||||||
"no-unneeded-ternary": 1,
|
"no-unneeded-ternary": 1,
|
||||||
"no-var": 1,
|
"no-var": 1,
|
||||||
"object-curly-spacing": [1, "always"],
|
"object-curly-spacing": [1, "always"],
|
||||||
"operator-linebreak": [1, "after"],
|
"operator-linebreak": [1, "after"],
|
||||||
"padded-blocks": [1, "never"],
|
"padded-blocks": [1, "never"],
|
||||||
"prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": false }],
|
"prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": false }],
|
||||||
"prettier/prettier": 1,
|
"quotes": [1, "double", { "avoidEscape": true, "allowTemplateLiterals": false }],
|
||||||
"quotes": [1, "double", { "avoidEscape": true, "allowTemplateLiterals": false }],
|
"quote-props": [1, "consistent-as-needed"],
|
||||||
"quote-props": [1, "consistent-as-needed"],
|
"semi": [1, "always"],
|
||||||
"semi": [1, "always"],
|
"semi-spacing": [1, { "before": false, "after": true }],
|
||||||
"semi-spacing": [1, { "before": false, "after": true }],
|
"space-before-blocks": [1, "always"],
|
||||||
"space-before-blocks": [1, "always"],
|
"space-in-parens": [1, "never"],
|
||||||
"space-in-parens": [1, "never"],
|
"space-infix-ops": [1, { "int32Hint": true }],
|
||||||
"space-infix-ops": [1, { "int32Hint": true }],
|
"spaced-comment": [1, "always"],
|
||||||
"spaced-comment": [1, "always"],
|
"sort-imports": [
|
||||||
"sort-imports": [
|
"warn",
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
"ignoreCase": false,
|
|
||||||
"ignoreDeclarationSort": true,
|
|
||||||
"ignoreMemberSort": false,
|
|
||||||
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"],
|
|
||||||
"allowSeparatedGroups": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
// Typescript overrides
|
|
||||||
"overrides": [
|
|
||||||
{
|
{
|
||||||
"files": ["*.ts", "*.tsx"],
|
"ignoreCase": false,
|
||||||
"parser": "@typescript-eslint/parser",
|
"ignoreDeclarationSort": true,
|
||||||
"plugins": ["@typescript-eslint"],
|
"ignoreMemberSort": false,
|
||||||
"extends": [
|
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"],
|
||||||
"eslint:recommended",
|
"allowSeparatedGroups": false
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended"
|
|
||||||
],
|
|
||||||
|
|
||||||
// Enable if you need jsx support
|
|
||||||
// "parserOptions": {
|
|
||||||
// "ecmaFeatures": { "jsx": true }
|
|
||||||
// },
|
|
||||||
|
|
||||||
"rules": {
|
|
||||||
"semi": "off",
|
|
||||||
"@typescript-eslint/no-unused-vars": "error",
|
|
||||||
"@typescript-eslint/member-delimiter-style": "error",
|
|
||||||
"@typescript-eslint/member-ordering": "error",
|
|
||||||
"@typescript-eslint/type-annotation-spacing": "error",
|
|
||||||
"@typescript-eslint/semi": [1, "always"],
|
|
||||||
"@typescript-eslint/no-explicit-any": 0,
|
|
||||||
"@typescript-eslint/no-var-requires": 0,
|
|
||||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
|
||||||
"@typescript-eslint/no-empty-function": "off",
|
|
||||||
"@typescript-eslint/naming-convention": [
|
|
||||||
"warn",
|
|
||||||
{ "selector": "default", "format": ["camelCase"] },
|
|
||||||
{ "selector": "variableLike", "format": ["camelCase"] },
|
|
||||||
{ "selector": "variable", "format": ["camelCase", "UPPER_CASE", "PascalCase"] },
|
|
||||||
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow" },
|
|
||||||
{ "selector": "memberLike", "format": ["camelCase"] },
|
|
||||||
{ "selector": "memberLike", "modifiers": ["private"], "format": ["camelCase"], "leadingUnderscore": "require" },
|
|
||||||
{ "selector": "typeLike", "format": null },
|
|
||||||
{ "selector": "typeAlias", "format": null },
|
|
||||||
{ "selector": "typeProperty", "format": null },
|
|
||||||
{ "selector": "typeParameter", "format": ["PascalCase"], "prefix": ["T"] },
|
|
||||||
{ "selector": "interface", "format": ["PascalCase"], "custom": { "regex": "^I[A-Z]", "match": false } },
|
|
||||||
{ "selector": "objectLiteralProperty", "format": null },
|
|
||||||
{ "selector": "enumMember", "format": ["UPPER_CASE"] }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// Typescript overrides
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["*.ts", "*.tsx"],
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"plugins": ["@typescript-eslint"],
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended"
|
||||||
|
],
|
||||||
|
|
||||||
|
// Enable if you need jsx support
|
||||||
|
// "parserOptions": {
|
||||||
|
// "ecmaFeatures": { "jsx": true }
|
||||||
|
// },
|
||||||
|
|
||||||
|
"rules": {
|
||||||
|
"semi": "off",
|
||||||
|
"@typescript-eslint/no-unused-vars": "error",
|
||||||
|
"@typescript-eslint/member-delimiter-style": "error",
|
||||||
|
"@typescript-eslint/member-ordering": "error",
|
||||||
|
"@typescript-eslint/type-annotation-spacing": "error",
|
||||||
|
"@typescript-eslint/semi": [1, "always"],
|
||||||
|
"@typescript-eslint/no-explicit-any": 0,
|
||||||
|
"@typescript-eslint/no-var-requires": 0,
|
||||||
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
|
"@typescript-eslint/naming-convention": [
|
||||||
|
"warn",
|
||||||
|
{ "selector": "default", "format": ["camelCase"] },
|
||||||
|
{ "selector": "variableLike", "format": ["camelCase"] },
|
||||||
|
{ "selector": "variable", "format": ["camelCase", "UPPER_CASE", "PascalCase"] },
|
||||||
|
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow" },
|
||||||
|
{ "selector": "memberLike", "format": ["camelCase"] },
|
||||||
|
{ "selector": "memberLike", "modifiers": ["private"], "format": ["camelCase"], "leadingUnderscore": "require" },
|
||||||
|
{ "selector": "typeLike", "format": null },
|
||||||
|
{ "selector": "typeAlias", "format": null },
|
||||||
|
{ "selector": "typeProperty", "format": null },
|
||||||
|
{ "selector": "typeParameter", "format": ["PascalCase"], "prefix": ["T"] },
|
||||||
|
{ "selector": "interface", "format": ["PascalCase"], "custom": { "regex": "^I[A-Z]", "match": false } },
|
||||||
|
{ "selector": "objectLiteralProperty", "format": null },
|
||||||
|
{ "selector": "enumMember", "format": ["UPPER_CASE"] }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -31,6 +31,7 @@
|
||||||
"@types/express": "^4.17.14",
|
"@types/express": "^4.17.14",
|
||||||
"eslint": "8.25.0",
|
"eslint": "8.25.0",
|
||||||
"eslint-config-next": "12.3.1",
|
"eslint-config-next": "12.3.1",
|
||||||
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"typescript": "^4.8.4"
|
"typescript": "^4.8.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1587,6 +1588,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/eslint-config-prettier": {
|
||||||
|
"version": "8.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz",
|
||||||
|
"integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"eslint-config-prettier": "bin/cli.js"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": ">=7.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/eslint-import-resolver-node": {
|
"node_modules/eslint-import-resolver-node": {
|
||||||
"version": "0.3.6",
|
"version": "0.3.6",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz",
|
||||||
|
@ -5671,6 +5684,13 @@
|
||||||
"eslint-plugin-react-hooks": "^4.5.0"
|
"eslint-plugin-react-hooks": "^4.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"eslint-config-prettier": {
|
||||||
|
"version": "8.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz",
|
||||||
|
"integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"eslint-import-resolver-node": {
|
"eslint-import-resolver-node": {
|
||||||
"version": "0.3.6",
|
"version": "0.3.6",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"@types/express": "^4.17.14",
|
"@types/express": "^4.17.14",
|
||||||
"eslint": "8.25.0",
|
"eslint": "8.25.0",
|
||||||
"eslint-config-next": "12.3.1",
|
"eslint-config-next": "12.3.1",
|
||||||
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"typescript": "^4.8.4"
|
"typescript": "^4.8.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue