mirror of
https://github.com/fergalmoran/supanextail.git
synced 2025-12-22 01:10:01 +00:00
86 lines
2.1 KiB
JSON
86 lines
2.1 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"node": true,
|
|
"cypress/globals": true
|
|
},
|
|
"extends": [
|
|
"next",
|
|
"next/core-web-vitals",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"plugin:sonarjs/recommended"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module",
|
|
"project": [
|
|
"./tsconfig.json"
|
|
]
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"ignorePatterns": [
|
|
"node_modules/*",
|
|
".next/*",
|
|
".out/*",
|
|
"!.prettierrc.js",
|
|
"types/*",
|
|
"next-env.d.ts"
|
|
],
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"cypress",
|
|
"simple-import-sort",
|
|
"prettier",
|
|
"sonarjs"
|
|
],
|
|
"rules": {
|
|
"no-console": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
"semi": true,
|
|
"trailingComma": "es5",
|
|
"singleQuote": true,
|
|
"tabWidth": 2,
|
|
"useTabs": false,
|
|
"endOfLine": "auto",
|
|
"printWidth": 80,
|
|
"bracketSameLine": true,
|
|
"bracketSpacing": true
|
|
}
|
|
],
|
|
"react/prop-types": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/jsx-filename-extension": [
|
|
2,
|
|
{
|
|
"extensions": [
|
|
".js",
|
|
".jsx",
|
|
".ts",
|
|
".tsx"
|
|
]
|
|
}
|
|
],
|
|
"@typescript-eslint/explicit-function-return-type": [
|
|
"warn",
|
|
{
|
|
"allowExpressions": true,
|
|
"allowTypedFunctionExpressions": true,
|
|
"allowHigherOrderFunctions": true,
|
|
"allowConciseArrowFunctionExpressionsStartingWithVoid": true
|
|
}
|
|
]
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"node": {
|
|
"paths": [
|
|
"."
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |