-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
47 lines (46 loc) · 1.5 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const path = require('path')
module.exports = {
plugins: ['react', '@typescript-eslint', 'prettier'],
extends: ['airbnb', 'airbnb/hooks', 'airbnb-typescript', 'prettier'],
ignorePatterns: ['**/*.config.js', '**/scripts/**'],
parserOptions: {
project: ['./tsconfig.json', './packages/*/tsconfig.json'],
tsconfigRootDir: __dirname,
},
rules: {
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [1, {extensions: ['.jsx', '.tsx']}],
'react/function-component-definition': [
2,
{namedComponents: 'arrow-function'},
],
'import/no-extraneous-dependencies': [
'error',
{
packageDir: [
__dirname,
path.resolve(__dirname, './packages/santa_close_app'),
path.resolve(__dirname, './packages/santa_close_map'),
path.resolve(__dirname, './packages/santa_close_frame'),
path.resolve(__dirname, './packages/santa_close_design-system'),
path.resolve(__dirname, './packages/santa_close_common'),
],
devDependencies: [
'**/*.test.ts',
'**/*.spec.ts',
'**/*.setup.ts',
'**/*.test.tsx',
'**/*.spec.tsx',
'**/*.config.js',
'**/*.config.ts',
],
},
],
'import/prefer-default-export': 'off',
'arrow-body-style': ['off'],
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
},
}