forked from aws-amplify/amplify-codegen-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (58 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
48
49
50
51
52
53
54
55
56
57
58
module.exports = {
ignorePatterns: [
'build',
'dist',
'node_modules',
'jest.config.js',
'.eslintrc.js',
'commitlint.config.js',
'packages/integration-test',
'*.md',
'*.css',
],
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb-typescript/base',
'prettier',
'plugin:prettier/recommended',
],
plugins: ['import', 'prettier', '@typescript-eslint', 'header'],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
ecmaVersion: 6,
},
rules: {
'max-len': ['error', 120, { ignoreTemplateLiterals: true }],
'max-classes-per-file': 'off',
'react/prop-types': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'header/header': [2, 'license-header.js'],
// TODO: enable rules below and fix issues
'@typescript-eslint/ban-types': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'class-methods-use-this': 'off',
},
settings: {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};