github.com/quickfeed/quickfeed@v0.0.0-20240507093252-ed8ca812a09c/public/.eslintrc.json (about)

     1  {
     2  	"parser": "@typescript-eslint/parser",
     3  	"plugins": [
     4  		"@typescript-eslint"
     5  	],
     6  	"extends": [
     7  		"eslint:recommended",
     8  		"plugin:@typescript-eslint/eslint-recommended",
     9  		"plugin:react/recommended",
    10  		"plugin:react-hooks/recommended"
    11  	],
    12  	"parserOptions": {
    13  		"ecmaVersion": 6,
    14  		"ecmaFeatures": {
    15  			"jsx": true
    16  		}
    17  	},
    18  	"rules": {
    19  		"react/function-component-definition": [
    20  			2,
    21  			{
    22  				"namedComponents": "arrow-function",
    23  				"unnamedComponents": [
    24  					"function-expression",
    25  					"arrow-function"
    26  				]
    27  			}
    28  		],
    29  		"react/jsx-filename-extension": [
    30  			2,
    31  			{
    32  				"extensions": [
    33  					".ts",
    34  					".tsx"
    35  				]
    36  			}
    37  		],
    38  		"react/jsx-newline": [
    39  			"off"
    40  		],
    41  		"no-undef": [
    42  			"off"
    43  		],
    44  		"no-unused-vars": "off",
    45  		"@typescript-eslint/no-unused-vars": "warn",
    46  		"react/jsx-max-depth": [
    47  			2,
    48  			{
    49  				"max": 4
    50  			}
    51  		]
    52  	}
    53  }