Skip to content

Commit

Permalink
chore: update packages (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 authored Dec 6, 2024
1 parent 6adf4df commit dbe908e
Show file tree
Hide file tree
Showing 6 changed files with 4,094 additions and 10,248 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

36 changes: 7 additions & 29 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'semi': ['error', 'always'],
'object-curly-spacing': ['error', 'always'],
'quotes': ['error', 'single'],
},
overrides: [
{
'files': ['**/*.spec.ts', '**/*.e2e.ts'],
'rules': {
'@typescript-eslint/no-explicit-any': 'off'
}
// ... other config options
env: {
// ... other environments
jest: true, // This will include Jest globals
jasmine: true // This will include Jasmine globals
},
{
'files': ['spec/fakes/**/*'],
'rules': {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
}
]
};
// ... rest of your config
}
87 changes: 87 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
module.exports = [
{
ignores: [
'node_modules/**',
'dist/**',
'coverage/**',
'eslint.config.js',
'.vscode/**',
'spec/support/**'
],
files: ['**/*.ts'],
languageOptions: {
parser: require('@typescript-eslint/parser'),
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
globals: {
describe: 'readonly',
it: 'readonly',
expect: 'readonly',
expectAsync: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
beforeAll: 'readonly',
afterAll: 'readonly',
jasmine: 'readonly',
spyOn: 'readonly',
RequestInit: 'readonly',
fail: 'readonly',
File: 'readonly',
Buffer: 'readonly',
FormData: 'readonly',
URLSearchParams: 'readonly',
Response: 'readonly',
BodyInit: 'readonly',
URL: 'readonly',
Response: 'readonly',
ReadableStream: 'readonly',
process: 'readonly',
HeadersInit: 'readonly',
setTimeout: 'readonly'
}
},
plugins: {
'@typescript-eslint': {
rules: require('@typescript-eslint/eslint-plugin').rules
}
},
rules: {
...require('@eslint/js').configs.recommended.rules,
...require('@typescript-eslint/eslint-plugin').configs['recommended'].rules,
'semi': ['error', 'always'],
'object-curly-spacing': ['error', 'always'],
'quotes': ['error', 'single'],
}
},
{
files: ['**/*.spec.ts', '**/*.e2e.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
},
{
files: ['spec/fakes/**/*'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
},
{
files: ['**/*.test.js', '**/*.spec.js', '**/tests/**/*.js'],
languageOptions: {
globals: {
describe: 'readonly',
it: 'readonly',
expect: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
beforeAll: 'readonly',
afterAll: 'readonly',
jest: 'readonly',
spyOn: 'readonly'
}
}
}
];
Loading

0 comments on commit dbe908e

Please sign in to comment.