-
Notifications
You must be signed in to change notification settings - Fork 0
.eslint react [template]
cococola edited this page Apr 20, 2023
·
2 revisions
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"prettier"
],
"plugins": [
"react",
"import",
"jsx-a11y",
"prettier",
"eslint-plugin-import",
"eslint-plugin-node"
],
"rules": {
"prettier/prettier": ["error", {}, { "usePrettierrc": true, "filepath": "./.prettierrc" }],
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"no-undef": "off"
}
}
{
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
"tabWidth": 2,
"semi": false
}
{
"compilerOptions": {
"target": "es5",
"allowSyntheticDefaultImports": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"types": [
"node"
],
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./src/*"
]
}
},
"eslintIntegration": true,
"eslintOptions": {
"plugins": [
"react",
"import",
"jsx-a11y",
"prettier"
]
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"./.eslintrc.json"
],
"exclude": [
"node_modules"
]
}