1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-01 03:21:21 +00:00
haste-server/.eslintrc.js

54 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

module.exports = {
env: {
2022-06-08 09:26:32 +00:00
node: true
},
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-06-08 09:26:32 +00:00
plugins: ['import', '@typescript-eslint'],
settings: {
'import/parsers': {
2022-06-08 09:26:32 +00:00
'@typescript-eslint/parser': ['.ts']
},
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
2022-06-08 09:26:32 +00:00
moduleDirectory: ['node_modules', 'src/']
},
typescript: {
alwaysTryTypes: true,
2022-06-08 09:26:32 +00:00
project: '.'
}
}
},
overrides: [
{
env: {
2022-06-08 09:26:32 +00:00
jest: true
},
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-06-08 09:26:32 +00:00
camelcase: ['off']
}
}
],
ignorePatterns: ['**/*.js', 'node_modules', 'dist'],
parserOptions: {
root: true,
tsconfigRootDir: __dirname,
2022-06-08 09:26:32 +00:00
project: ['./tsconfig.json']
}
}