Skip to content

Commit 9b4854b

Browse files
Add airbnb base and ts eslint
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent 1189df1 commit 9b4854b

19 files changed

+2140
-332
lines changed

.eslintrc.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
env: {
3+
browser: false,
4+
es6: true,
5+
jest: true,
6+
},
7+
extends: ['airbnb-base', 'airbnb-typescript/base'],
8+
globals: {
9+
Atomics: 'readonly',
10+
SharedArrayBuffer: 'readonly',
11+
},
12+
parser: '@typescript-eslint/parser',
13+
parserOptions: {
14+
ecmaVersion: 2022,
15+
project: './tsconfig.json',
16+
},
17+
plugins: ['@typescript-eslint'],
18+
rules: {
19+
hasTrailingComma: 'off',
20+
indent: ['error', 2],
21+
'no-tabs': 'error',
22+
'import/extensions': 'error',
23+
'import/no-namespace': 'error',
24+
'import/no-unresolved': 'error',
25+
'import/no-extraneous-dependencies': 'error',
26+
'import/prefer-default-export': 'off',
27+
'max-classes-per-file': 'off',
28+
'no-new': 'off',
29+
"no-console": "off",
30+
'max-len': ['error', { code: 120, ignoreComments: true }],
31+
},
32+
};

0 commit comments

Comments
 (0)