Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ name = "javascript"
[analyzers.meta]
environment = [
"nodejs",
"jest"
]
239 changes: 0 additions & 239 deletions .eslintrc.json

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Enable pnpm
run: corepack enable pnpm

- name: Install dependencies
run: npm ci
run: pnpm i

- name: Run ESLint
run: npm run lint
run: pnpm lint

- name: Run tests with coverage
run: npm run tc
run: pnpm tc

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"bracketSameLine": false
}
75 changes: 75 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import pluginJs from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import importPlugin from 'eslint-plugin-import';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';

/** @type {import('eslint').Linter.Config[]} */
const config = tseslint.config([
{
ignores: ['dist'],
},
{
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
},
{
languageOptions: { globals: { ...globals.node } },
},
...tseslint.configs.recommended,
pluginJs.configs.recommended,
importPlugin.flatConfigs.recommended,
eslintPluginPrettierRecommended,
eslintConfigPrettier,
{
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'import/no-unresolved': 'off',

'no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],

indent: 'off',
'import/named': 'off',
semi: ['error', 'always'],

quotes: [
'error',
'single',
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'type',
'internal',
'parent',
'sibling',
'index',
'object',
],
alphabetize: {
order: 'asc',
},
},
],
},
},
]);

export default config;
18 changes: 0 additions & 18 deletions jest.config.ts

This file was deleted.

Loading