2022-05-27 09:00:09 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
2022-06-08 09:26:32 +00:00
|
|
|
node: true
|
2022-05-27 09:00:09 +00:00
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'airbnb-base',
|
|
|
|
'airbnb-typescript/base',
|
|
|
|
'plugin:import/errors',
|
|
|
|
'plugin:import/warnings',
|
|
|
|
'plugin:import/typescript',
|
2022-06-08 09:26:32 +00:00
|
|
|
'prettier'
|
2022-05-27 09:00:09 +00:00
|
|
|
],
|
2022-06-08 09:26:32 +00:00
|
|
|
plugins: ['import', '@typescript-eslint'],
|
2022-05-27 09:00:09 +00:00
|
|
|
settings: {
|
|
|
|
'import/parsers': {
|
2022-06-08 09:26:32 +00:00
|
|
|
'@typescript-eslint/parser': ['.ts']
|
2022-05-27 09:00:09 +00:00
|
|
|
},
|
|
|
|
'import/resolver': {
|
|
|
|
node: {
|
|
|
|
extensions: ['.js', '.ts'],
|
2022-06-08 09:26:32 +00:00
|
|
|
moduleDirectory: ['node_modules', 'src/']
|
2022-05-27 09:00:09 +00:00
|
|
|
},
|
|
|
|
typescript: {
|
|
|
|
alwaysTryTypes: true,
|
2022-06-08 09:26:32 +00:00
|
|
|
project: '.'
|
|
|
|
}
|
|
|
|
}
|
2022-05-27 09:00:09 +00:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
env: {
|
2022-06-08 09:26:32 +00:00
|
|
|
jest: true
|
2022-05-27 09:00:09 +00:00
|
|
|
},
|
|
|
|
files: ['**/__tests__/**/*.[jt]s', '**/?(*.)+(spec|test).[jt]s'],
|
|
|
|
extends: ['plugin:jest/recommended'],
|
|
|
|
rules: {
|
|
|
|
'import/no-extraneous-dependencies': [
|
|
|
|
'off',
|
2022-06-08 09:26:32 +00:00
|
|
|
{ devDependencies: ['**/?(*.)+(spec|test).[jt]s'] }
|
2022-05-27 09:00:09 +00:00
|
|
|
],
|
2022-06-08 09:26:32 +00:00
|
|
|
camelcase: ['off']
|
|
|
|
}
|
|
|
|
}
|
2022-05-27 09:00:09 +00:00
|
|
|
],
|
|
|
|
ignorePatterns: ['**/*.js', 'node_modules', 'dist'],
|
|
|
|
parserOptions: {
|
|
|
|
root: true,
|
|
|
|
tsconfigRootDir: __dirname,
|
2022-06-08 09:26:32 +00:00
|
|
|
project: ['./tsconfig.json']
|
|
|
|
}
|
2022-05-27 09:00:09 +00:00
|
|
|
}
|