Files
deployment-portal-fe/.eslintrc.json
Ashvin S e29ee6a0a9 INFRA-2881 | Ashvin | Add support for multiple EFS in a manifest (#480)
* INFRA-2881 | Ashvin | Add support for multiple EFS in a manifest

- EFS are now shown in a list, and can be added like S3 buckets
- No two EFS can have same name, I did not add any validation for the mount point because we are setting it ourselves
- Added unused import plugin to remove unused imports

* INFRA-2881 | Ashvin | Create types for ManifestValidationSchema.ts

* INFRA-2881 | Ashvin | Extract out inline function in EfsVolumeForm.tsx

* INFRA-2881 | Ashvin | Revert remove conditional render on EFS component

* INFRA-2881 | Ashvin | Add return type to functions

* INFRA-2881 | Ashvin | Make function names more expressive

* INFRA-2881 | Ashvin | Remove enable field from EfsVolume
2024-02-27 22:39:30 +05:30

80 lines
2.1 KiB
JSON

{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "react-hooks", "prettier", "import", "unused-imports"],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"fragment": "Fragment",
"version": "detect",
"flowVersion": "0.53"
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".d.ts"]
},
"typescript": {}
}
},
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react-hooks/rules-of-hooks": "error",
"no-console": "warn",
"@typescript-eslint/member-delimiter-style": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/type-annotation-spacing": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-var-requires": "warn",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "lodash",
"message": "Import [module] from lodash/[module] instead"
}
],
"patterns": [
{
"group": ["lodash/set"],
"message": "Import [module] from lodash/fp/[module] instead"
}
]
}
],
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
}