grub775.gitverse.ru
/
.eslintrc.json
61 строка · 1.3 Кб
1{
2"extends": [
3"airbnb",
4"prettier",
5"plugin:node/recommended",
6"next/core-web-vitals"
7],
8"parser": "@typescript-eslint/parser",
9"plugins": ["prettier"],
10"env": {
11"es6": true
12},
13"overrides": [
14{
15"files": ["*.ts", "*.tsx"],
16"parserOptions": {
17"project": ["./tsconfig.json"]
18}
19}
20],
21"rules": {
22"prettier/prettier": "error",
23"node/no-missing-import": "off",
24"no-unused-vars": "warn",
25"no-console": "off",
26"func-names": "off",
27"no-process-exit": "off",
28"object-shorthand": "off",
29"class-methods-use-this": "off",
30"default-param-last": "off",
31"react/jsx-props-no-spreading": "off",
32"no-restricted-globals": "off",
33"no-underscore-dangle": "off",
34"react/function-component-definition": [
35"error",
36{
37"namedComponents": ["function-declaration", "arrow-function"],
38"unnamedComponents": "arrow-function"
39}
40],
41"react/jsx-filename-extension": [
42"off",
43{
44"extensions": [".js", ".jsx"]
45}
46],
47"import/no-extraneous-dependencies": [
48"error",
49{
50"devDependencies": true
51}
52],
53"node/no-unsupported-features/es-syntax": [
54"error",
55{
56"version": ">=13.0.0",
57"ignores": ["modules"]
58}
59]
60}
61}
62