Skip to content

Commit

Permalink
migrates to flat config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nichlaes committed Sep 26, 2024
1 parent 2c6540c commit 40606df
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 6 deletions.
6 changes: 0 additions & 6 deletions servers/lib/.eslintignore

This file was deleted.

52 changes: 52 additions & 0 deletions servers/lib/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import js from '@eslint/js';
import typescript from '@typescript-eslint/eslint-plugin';
import prettier from 'eslint-config-prettier';
import airbnbBase from 'eslint-config-airbnb-base';
import jest from 'eslint-plugin-jest';


export default [
js.configs.recommended,
airbnbBase,
typescript.configs.recommended,
prettier,
{
files: ['**/*.js', '**/*.ts'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
plugins: {
jest,
'@typescript-eslint': typescript,
},
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'no-console': 'error',
'import/first': 'error',
'linebreak-style': 0,
'import/no-unresolved': 'off',
'import/extensions': 'off',
'no-use-before-define': 'off',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js'],
},
},
},
},
{
files: ['**/*.ts'],
languageOptions: {
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
},
},
},
{
ignores: ['api/', 'build/', 'dist/', 'node_modules/', 'script/', 'src/types.ts'],
},
];

0 comments on commit 40606df

Please sign in to comment.