You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
3 years ago
|
{
|
||
|
"root": true,
|
||
|
"env": {
|
||
|
"node": true,
|
||
|
"es6": true
|
||
|
},
|
||
|
"parserOptions": {
|
||
|
"ecmaVersion": 8
|
||
|
},
|
||
|
"plugins": ["prettier"],
|
||
|
"ignorePatterns": ["node_modules/*", ".next/*", ".out/*", "!.prettierrc.js"],
|
||
|
"extends": ["eslint:recommended"],
|
||
|
"overrides": [
|
||
|
{
|
||
|
"files": ["**/*.ts", "**/*.tsx"],
|
||
|
"parser": "@typescript-eslint/parser",
|
||
|
"settings": {
|
||
|
"react": {
|
||
|
"version": "detect"
|
||
|
}
|
||
|
},
|
||
|
"env": {
|
||
|
"browser": true,
|
||
|
"node": true,
|
||
|
"es6": true
|
||
|
},
|
||
|
"extends": [
|
||
|
"eslint:recommended",
|
||
|
"plugin:@typescript-eslint/recommended",
|
||
|
"plugin:react/recommended",
|
||
|
"plugin:react-hooks/recommended",
|
||
|
"plugin:jsx-a11y/recommended"
|
||
|
],
|
||
|
"rules": {
|
||
|
"prettier/prettier": "error",
|
||
|
"react/prop-types": "off",
|
||
|
"react/react-in-jsx-scope": "off",
|
||
|
"jsx-a11y/anchor-is-valid": "off",
|
||
|
"jsx-a11y/no-autofocus": "off",
|
||
|
"@typescript-eslint/no-unused-vars": ["error"],
|
||
|
"@typescript-eslint/explicit-function-return-type": [
|
||
|
"warn",
|
||
|
{
|
||
|
"allowExpressions": true,
|
||
|
"allowConciseArrowFunctionExpressionsStartingWithVoid": true,
|
||
|
"allowTypedFunctionExpressions": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|