Skip to content

Commit

Permalink
chore: ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoerpenbeck committed Oct 7, 2024
1 parent dda8edf commit 154f6de
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 20 deletions.
8 changes: 4 additions & 4 deletions event/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import jestPlugin from 'eslint-plugin-jest';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';

export default [
export default tseslint.config(
{
ignores: ['**/node_modules', '**/build/', '**/.nvmrc', '**/api.ts'],
ignores: ['**/node_modules', '**/build/', '**/.nvmrc'],
},
prettierConfig,
eslint.configs.recommended,
Expand All @@ -29,7 +29,7 @@ export default [

parserOptions: {
project: 'tsconfig.*?.json',
tsconfigRootDir: '/Users/aerpenbeck/src/commercetools-connector/event',
tsconfigRootDir: globals.__dirname,
},
},

Expand All @@ -46,4 +46,4 @@ export default [
'no-const-assign': 'error',
},
},
];
);
2 changes: 0 additions & 2 deletions event/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"postversion": "git add package.json package-lock.json"
},
"devDependencies": {
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.12.0",
"@jest/globals": "29.7.0",
"@tsconfig/recommended": "1.0.7",
Expand Down
10 changes: 5 additions & 5 deletions service/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import jestPlugin from 'eslint-plugin-jest';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';

export default [
export default tseslint.config(
{
ignores: ['**/node_modules', '**/build/', '**/.nvmrc', '**/api.ts'],
ignores: ['**/node_modules', '**/build/', '**/.nvmrc'],
},
prettierConfig,
eslint.configs.recommended,
Expand All @@ -29,7 +29,7 @@ export default [

parserOptions: {
project: 'tsconfig.*?.json',
tsconfigRootDir: '/Users/aerpenbeck/src/commercetools-connector/service',
tsconfigRootDir: globals.__dirname,
},
},

Expand All @@ -45,5 +45,5 @@ export default [
'no-console': 'error',
'no-const-assign': 'error',
},
},
];
}
);
2 changes: 0 additions & 2 deletions service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"postversion": "git add package.json package-lock.json"
},
"devDependencies": {
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.12.0",
"@jest/globals": "29.7.0",
"@tsconfig/recommended": "1.0.7",
Expand Down
6 changes: 3 additions & 3 deletions shared/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import jestPlugin from 'eslint-plugin-jest';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';

export default [
export default tseslint.config(
{
ignores: ['**/node_modules', '**/lib', '**/build/', '**/.nvmrc'],
},
Expand All @@ -29,7 +29,7 @@ export default [

parserOptions: {
project: 'tsconfig.*?.json',
tsconfigRootDir: '/Users/aerpenbeck/src/commercetools-connector/shared',
tsconfigRootDir: globals.__dirname,
},
},

Expand All @@ -46,4 +46,4 @@ export default [
'no-const-assign': 'error',
},
},
];
);
1 change: 0 additions & 1 deletion shared/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"postversion": "git add package.json package-lock.json"
},
"devDependencies": {
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.12.0",
"@jest/globals": "29.7.0",
"@tsconfig/recommended": "1.0.7",
Expand Down

0 comments on commit 154f6de

Please sign in to comment.