2019-12-29 05:41:00 -09:00
|
|
|
{
|
|
|
|
|
"plugins": [
|
|
|
|
|
"react",
|
|
|
|
|
"prettier",
|
2020-03-02 08:59:28 -09:00
|
|
|
"@typescript-eslint",
|
|
|
|
|
"eslint-comments"
|
2019-12-29 05:41:00 -09:00
|
|
|
],
|
|
|
|
|
"extends": [
|
|
|
|
|
"eslint:recommended",
|
|
|
|
|
"plugin:react/recommended",
|
2020-03-02 08:59:28 -09:00
|
|
|
"plugin:prettier/recommended",
|
|
|
|
|
"plugin:eslint-comments/recommended"
|
2019-12-29 05:41:00 -09:00
|
|
|
],
|
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
|
"parserOptions": {
|
|
|
|
|
"sourceType": "module",
|
|
|
|
|
"ecmaFeatures": {
|
|
|
|
|
"jsx": true,
|
|
|
|
|
"impliedStrict": true,
|
|
|
|
|
"experimentalObjectRestSpread": true
|
|
|
|
|
},
|
2021-03-10 02:25:51 -09:00
|
|
|
"allowImportExportEverywhere": true,
|
|
|
|
|
"project": [
|
|
|
|
|
"./tsconfig.eslint.json"
|
|
|
|
|
]
|
2019-12-29 05:41:00 -09:00
|
|
|
},
|
|
|
|
|
"env": {
|
|
|
|
|
"es6": true,
|
|
|
|
|
"browser": true,
|
|
|
|
|
"node": true
|
|
|
|
|
},
|
|
|
|
|
"settings": {
|
|
|
|
|
"react": {
|
|
|
|
|
"version": "detect"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"rules": {
|
|
|
|
|
"func-names": [
|
|
|
|
|
"error",
|
|
|
|
|
"as-needed"
|
|
|
|
|
],
|
|
|
|
|
"no-shadow": "error",
|
|
|
|
|
"no-extra-semi": 0,
|
|
|
|
|
"react/prop-types": 0,
|
|
|
|
|
"react/react-in-jsx-scope": 0,
|
|
|
|
|
"react/no-unescaped-entities": 0,
|
|
|
|
|
"react/jsx-no-target-blank": 0,
|
|
|
|
|
"react/no-string-refs": 0,
|
|
|
|
|
"prettier/prettier": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"printWidth": 120,
|
|
|
|
|
"tabWidth": 2,
|
|
|
|
|
"singleQuote": true,
|
|
|
|
|
"trailingComma": "none",
|
|
|
|
|
"bracketSpacing": false,
|
|
|
|
|
"semi": true,
|
|
|
|
|
"useTabs": false,
|
2021-09-10 00:31:39 -08:00
|
|
|
"bracketSameLine": false
|
2019-12-29 05:41:00 -09:00
|
|
|
}
|
2020-03-02 08:59:28 -09:00
|
|
|
],
|
2023-02-20 21:07:16 -09:00
|
|
|
"eslint-comments/no-unused-disable": "error",
|
|
|
|
|
"react/no-unknown-property":[
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"ignore": [
|
|
|
|
|
"jsx",
|
|
|
|
|
"global"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2019-12-29 05:41:00 -09:00
|
|
|
},
|
|
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"files": [
|
|
|
|
|
"**.ts",
|
|
|
|
|
"**.tsx"
|
|
|
|
|
],
|
|
|
|
|
"extends": [
|
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
2021-03-10 02:25:51 -09:00
|
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
2021-02-22 22:06:12 -09:00
|
|
|
"prettier"
|
2019-12-29 05:41:00 -09:00
|
|
|
],
|
|
|
|
|
"rules": {
|
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
2020-07-13 05:05:34 -08:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
2019-12-29 05:41:00 -09:00
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2020-03-25 02:22:23 -08:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
2020-07-13 05:05:34 -08:00
|
|
|
"@typescript-eslint/prefer-optional-chain": "error",
|
2020-09-15 22:32:22 -08:00
|
|
|
"@typescript-eslint/ban-types": "off",
|
|
|
|
|
"no-shadow": "off",
|
2021-03-10 02:25:51 -09:00
|
|
|
"@typescript-eslint/no-shadow": ["error"],
|
|
|
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
|
|
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
2023-06-26 01:29:50 -08:00
|
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"disallowTypeAnnotations": false
|
|
|
|
|
}
|
|
|
|
|
]
|
2019-12-29 05:41:00 -09:00
|
|
|
}
|
2022-11-16 04:48:20 -09:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"extends": [
|
|
|
|
|
"plugin:jsonc/recommended-with-json",
|
|
|
|
|
"plugin:json-schema-validator/recommended"
|
|
|
|
|
],
|
|
|
|
|
"files": [
|
|
|
|
|
"*.json"
|
|
|
|
|
],
|
|
|
|
|
"parser": "jsonc-eslint-parser",
|
|
|
|
|
"plugins": [
|
|
|
|
|
"jsonc",
|
|
|
|
|
"json-schema-validator"
|
|
|
|
|
],
|
|
|
|
|
"rules": {
|
|
|
|
|
"jsonc/array-element-newline": [
|
|
|
|
|
"error",
|
|
|
|
|
"consistent"
|
|
|
|
|
],
|
|
|
|
|
"jsonc/array-bracket-newline": [
|
|
|
|
|
"error",
|
|
|
|
|
"consistent"
|
|
|
|
|
],
|
|
|
|
|
"jsonc/indent": [
|
|
|
|
|
"error",
|
|
|
|
|
2
|
|
|
|
|
],
|
|
|
|
|
"prettier/prettier": "off",
|
|
|
|
|
"json-schema-validator/no-invalid": "error"
|
|
|
|
|
}
|
2019-12-29 05:41:00 -09:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|