mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-18 05:22:10 +01:00
remove flow based configuration and use ts as default
This commit is contained in:
@@ -22,35 +22,15 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
module.exports = {
|
||||
extends: [
|
||||
"react-app",
|
||||
"plugin:prettier/recommended",
|
||||
"plugin:flowtype/recommended"
|
||||
],
|
||||
parser: "@typescript-eslint/parser",
|
||||
extends: ["react-app", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],
|
||||
rules: {
|
||||
"prettier/prettier": "warn",
|
||||
semi: ["error", "always"],
|
||||
quotes: ["error", "double"],
|
||||
"jsx-a11y/href-no-hash": [0],
|
||||
"flowtype/no-types-missing-file-annotation": 2,
|
||||
"@typescript-eslint/explicit-function-return-type": "off",
|
||||
"@typescript-eslint/ban-ts-ignore": "warn",
|
||||
"no-console": "error"
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ["*.ts", "*.tsx"],
|
||||
parser: "@typescript-eslint/parser",
|
||||
extends: [
|
||||
"react-app",
|
||||
"plugin:prettier/recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
rules: {
|
||||
semi: ["error", "always"],
|
||||
quotes: ["error", "double"],
|
||||
"jsx-a11y/href-no-hash": [0],
|
||||
"@typescript-eslint/explicit-function-return-type": "off",
|
||||
"@typescript-eslint/ban-ts-ignore": "warn",
|
||||
"no-console": "error"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user