Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ripecosta committed Nov 22, 2024
1 parent 3c621e7 commit c40e15b
Show file tree
Hide file tree
Showing 5 changed files with 730 additions and 978 deletions.
99 changes: 37 additions & 62 deletions base.js
Original file line number Diff line number Diff line change
@@ -1,105 +1,80 @@
module.exports = {
plugins: [
'import'
],
plugins: ['import'],

rules: {
// -- Generic rules
'import/no-extraneous-dependencies': ['error', {
devDependencies: true
}],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/no-unresolved': 'off',
'newline-before-return': 'error',
'no-console': ['warn'],
'no-restricted-syntax': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'off',
'no-return-assign': ['error', 'except-parens'],
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'@typescript-eslint/return-await': 'off',

// -- No default exports
'import/no-default-export': 'error',
'import/prefer-default-export': 'off',

// -- Code formatting
'indent': 'off',
'@typescript-eslint/indent': ['error', 2, {
'SwitchCase': 1,
'ignoredNodes': [
'FunctionExpression > .params[decorators.length > 0]',
'FunctionExpression > .params > :matches(Decorator, :not(:first-child))',
'ClassBody.body > PropertyDefinition[decorators.length > 0] > .key',
],
}],
'@typescript-eslint/type-annotation-spacing': ['error', {
before: false,
after: true,
overrides: {
arrow: {
before: true,
after: true,
},
indent: 'off',
'@typescript-eslint/indent': [
'error',
2,
{
SwitchCase: 1,
ignoredNodes: [
'FunctionExpression > .params[decorators.length > 0]',
'FunctionExpression > .params > :matches(Decorator, :not(:first-child))',
'ClassBody.body > PropertyDefinition[decorators.length > 0] > .key',
],
},
}],
],
'@typescript-eslint/type-annotation-spacing': [
'error',
{ before: false, after: true, overrides: { arrow: { before: true, after: true } } },
],
'@typescript-eslint/member-delimiter-style': 'error',
'array-bracket-spacing': ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'max-len': ['error', {
code: 100,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true
}],
'no-multiple-empty-lines': ['error', {
max: 1,
maxEOF: 1,
maxBOF: 0,
}],
'@typescript-eslint/brace-style': [
'max-len': [
'error',
'1tbs',
{
'allowSingleLine': false
}
code: 100,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
'curly': ['error', 'all'],
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1, maxBOF: 0 }],
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: false }],
curly: ['error', 'all'],
'key-spacing': 'error',

// -- Typescript
'@typescript-eslint/ban-types': [
'error',
{
types: {
'String': {
'message': 'Use string instead',
'fixWith': 'string'
},
'Number': {
'message': 'Use number instead',
'fixWith': 'number'
},
'Boolean': {
'message': 'Use boolean instead',
'fixWith': 'boolean'
},
}
}
String: { message: 'Use string instead', fixWith: 'string' },
Number: { message: 'Use number instead', fixWith: 'number' },
Boolean: { message: 'Use boolean instead', fixWith: 'boolean' },
},
},
],
'@typescript-eslint/no-namespace': 'error',
},

overrides: [
{
files: ['src/**/*.spec.ts', 'src/**/*.spec.tsx'],
rules: {
'max-len': 'off',
},
files: [
'src/**/*.spec.ts',
'src/**/*.spec.tsx',
],
},
]
}
],
};
Loading

0 comments on commit c40e15b

Please sign in to comment.