worklog-reminder

Форк
0
/
.eslintrc.js 
51 строка · 1.2 Кб
1
module.exports = {
2
  settings: {
3
    "import/resolver": {
4
      "node": {
5
        "paths": ["src"]
6
      }
7
    }
8
  },
9
  env: {
10
    browser: true,
11
    es2021: true,
12
    node: true,
13
  },
14
  globals: {
15
    "MAIN_WINDOW_WEBPACK_ENTRY": "readonly",
16
  },
17
  parser: '@babel/eslint-parser',
18
  extends: [
19
    'plugin:react/recommended',
20
    'airbnb',
21
  ],
22
  parserOptions: {
23
    ecmaFeatures: {
24
      jsx: true,
25
    },
26
    ecmaVersion: 12,
27
    sourceType: 'module',
28
  },
29
  plugins: [
30
    'react',
31
  ],
32
  rules: {
33
    "no-underscore-dangle": "off",
34
    "class-methods-use-this": "off",
35
    "react/react-in-jsx-scope": "off",
36
    "no-unused-vars": ['warn'],
37
    "import/no-extraneous-dependencies": ["warn", {"devDependencies": false, "optionalDependencies": false, "peerDependencies": false}],
38
    "no-param-reassign": "warn",
39
    "no-console": "warn",
40
    "no-restricted-syntax": "warn",
41
    "global-require": "warn",
42
    "react/prop-types": "warn",
43
    "react/jsx-filename-extension": "off",
44
    "import/no-cycle": ["warn", {maxDepth: 2}],
45
    "react/jsx-props-no-spreading": "warn",
46
    "jsx-a11y/alt-text": "off",
47
    "max-len": ["error", {code: 120}],
48
    "react/no-unescaped-entities": "off",
49
    "no-plusplus": "off",
50
  },
51
};
52

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.