.eslintrc.json
{
"plugins": ["node", "security", "react", "jest", "@typescript-eslint", "json"],
"extends": ["airbnb-typescript", "airbnb/hooks", "plugin:security/recommended", "plugin:json/recommended",
"plugin:node/recommended", "plugin:jest/recommended", "plugin:@typescript-eslint/recommended"
],
"rules": {
"import/extensions":0,
"import/no-extraneous-dependencies":0,
"jest/no-conditional-expect": 0,
"react/jsx-filename-extension": [1, {
"extensions": ["tsx"]
}],
"react/static-property-placement": 0,
"react/prop-types": 0,
"node/no-unsupported-features/es-syntax": 0,
"node/no-missing-import": ["error", {
"tryExtensions": [".js", ".json", ".tsx", ".ts"]
}],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 1
}
],
"no-underscore-dangle": 0,
"one-var-declaration-per-line": [0, "never"],
"one-var": [2, {
"var": "never",
"let": "always",
"const": "never"
}],
"max-len": ["error", {
"code": 150
}]
},
"env": {
"jest": true,
"browser": true,
"node": true
},
"globals": {
"$": true,
"page": true,
"browser": true,
"context": true,
"jestPuppeteer": true,
"google": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module",
"project": "./tsconfig.eslint.json"
}
}