forked from Archives/Athou_commafeed
53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: [
|
|
"eslint:recommended",
|
|
"standard",
|
|
"love",
|
|
"plugin:@typescript-eslint/strict-type-checked",
|
|
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
overrides: [
|
|
{
|
|
env: {
|
|
node: true,
|
|
},
|
|
files: [".eslintrc.{js,cjs}"],
|
|
parserOptions: {
|
|
sourceType: "script",
|
|
},
|
|
},
|
|
],
|
|
parserOptions: {
|
|
project: true,
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
plugins: ["react"],
|
|
rules: {
|
|
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "as" }],
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/no-confusing-void-expression": ["error", { ignoreArrowShorthand: true }],
|
|
"@typescript-eslint/no-floating-promises": "off",
|
|
"@typescript-eslint/no-misused-promises": "off",
|
|
"@typescript-eslint/prefer-nullish-coalescing": ["error", { ignoreConditionalTests: true }],
|
|
"@typescript-eslint/restrict-template-expressions": ["error", { allowNumber: true }],
|
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
"react/jsx-curly-brace-presence": ["error", "never"],
|
|
"react/no-unescaped-entities": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react-hooks/exhaustive-deps": "error",
|
|
},
|
|
}
|