2020-05-28 21:20:39 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
2021-04-30 18:29:48 +08:00
|
|
|
project: './tsconfig.json',
|
2020-05-28 21:20:39 +08:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
|
|
|
es6: true,
|
|
|
|
},
|
2020-07-19 14:47:24 +08:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint', 'import'],
|
|
|
|
extends: [
|
2021-04-30 18:29:48 +08:00
|
|
|
'airbnb-typescript/base',
|
2020-07-19 14:47:24 +08:00
|
|
|
],
|
2020-05-28 21:20:39 +08:00
|
|
|
rules: {
|
|
|
|
'no-nested-ternary': [0],
|
|
|
|
'no-param-reassign': [0],
|
|
|
|
'no-use-before-define': [0],
|
2021-02-28 18:08:42 +08:00
|
|
|
'no-restricted-syntax': [0],
|
2020-05-28 21:20:39 +08:00
|
|
|
'no-plusplus': [0],
|
|
|
|
'import/no-extraneous-dependencies': [0],
|
2020-06-07 17:22:42 +08:00
|
|
|
'consistent-return': [0],
|
2020-07-19 14:47:24 +08:00
|
|
|
'no-bitwise': [0],
|
2021-04-30 18:29:48 +08:00
|
|
|
'@typescript-eslint/no-use-before-define': [0],
|
2020-09-14 16:35:44 +08:00
|
|
|
'prefer-destructuring': [2, { array: false }],
|
2021-01-17 00:15:54 +08:00
|
|
|
'max-len': [0],
|
2020-05-28 21:20:39 +08:00
|
|
|
},
|
|
|
|
};
|