mirror of https://github.com/fantasticit/think.git
48 lines
1.5 KiB
JavaScript
48 lines
1.5 KiB
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 8,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
impliedStrict: true,
|
|
experimentalObjectRestSpread: true,
|
|
},
|
|
allowImportExportEverywhere: true,
|
|
project: ['./packages/client/tsconfig.json'],
|
|
},
|
|
plugins: ['@typescript-eslint', 'react-hooks'],
|
|
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
env: {
|
|
es6: true,
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
rules: {
|
|
'func-names': 0,
|
|
'no-shadow': 0,
|
|
'@typescript-eslint/no-shadow': 0,
|
|
'@typescript-eslint/explicit-function-return-type': 0,
|
|
'@typescript-eslint/no-unused-vars': [0, { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-use-before-define': 0,
|
|
'@typescript-eslint/ban-ts-ignore': 0,
|
|
'@typescript-eslint/no-empty-function': 0,
|
|
'@typescript-eslint/ban-ts-comment': 0,
|
|
'@typescript-eslint/no-var-requires': 0,
|
|
'@typescript-eslint/no-explicit-any': 0,
|
|
'@typescript-eslint/no-this-alias': 0,
|
|
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
'@typescript-eslint/ban-types': 0,
|
|
'react-hooks/rules-of-hooks': 2,
|
|
'react-hooks/exhaustive-deps': 1,
|
|
'react/prop-types': 0,
|
|
'testing-library/no-unnecessary-act': 0,
|
|
'react/react-in-jsx-scope': 0,
|
|
},
|
|
ignorePatterns: ['dist/', 'node_modules', 'scripts', 'examples'],
|
|
};
|