Skip to content

Commit

Permalink
Merge branch 'dev' into releases/v4-test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Apr 17, 2024
2 parents 2209de2 + 69873ad commit ca1685b
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions eslint.config.mjs
@@ -1,7 +1,7 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintConfigPrettier from "eslint-config-prettier";
import jest from "eslint-plugin-jest";
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'
import jest from 'eslint-plugin-jest'

export default tseslint.config(
eslintConfigPrettier,
Expand All @@ -10,63 +10,63 @@ export default tseslint.config(
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
process: true,
module: true,
}
globals: {
process: true,
module: true
}
},
rules: {
"jest/no-conditional-expect": "off",
"@typescript-eslint/ban-types": [
"error",
'jest/no-conditional-expect': 'off',
'@typescript-eslint/ban-types': [
'error',
{
types: {
"Number": {
"message": "Use number instead",
"fixWith": "number"
Number: {
message: 'Use number instead',
fixWith: 'number'
},
"String": {
"message": "Use string instead",
"fixWith": "string"
String: {
message: 'Use string instead',
fixWith: 'string'
},
"Boolean": {
"message": "Use boolean instead",
"fixWith": "boolean"
Boolean: {
message: 'Use boolean instead',
fixWith: 'boolean'
},
"Object": {
"message": "Use object instead",
"fixWith": "object"
Object: {
message: 'Use object instead',
fixWith: 'object'
},
"{}": {
"message": "Use object instead",
"fixWith": "object"
'{}': {
message: 'Use object instead',
fixWith: 'object'
},
"Symbol": {
"message": "Use symbol instead",
"fixWith": "symbol"
Symbol: {
message: 'Use symbol instead',
fixWith: 'symbol'
}
}
}
],
"@typescript-eslint/array-type": ["error", {"default": "array"}],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"object-shorthand": ["error", "always"],
"prefer-destructuring": [
"error",
'@typescript-eslint/array-type': ['error', {default: 'array'}],
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'object-shorthand': ['error', 'always'],
'prefer-destructuring': [
'error',
{
"array": false,
"object": true
array: false,
object: true
},
{
"enforceForRenamedProperties": false
enforceForRenamedProperties: false
}
],
"no-console": ["error", {"allow": ["warn", "error"]}],
"no-alert": "error",
"no-debugger": "error"
'no-console': ['error', {allow: ['warn', 'error']}],
'no-alert': 'error',
'no-debugger': 'error'
}
}
);
)

0 comments on commit ca1685b

Please sign in to comment.