worklog-reminder
/
.eslintrc.js
51 строка · 1.2 Кб
1module.exports = {2settings: {3"import/resolver": {4"node": {5"paths": ["src"]6}7}8},9env: {10browser: true,11es2021: true,12node: true,13},14globals: {15"MAIN_WINDOW_WEBPACK_ENTRY": "readonly",16},17parser: '@babel/eslint-parser',18extends: [19'plugin:react/recommended',20'airbnb',21],22parserOptions: {23ecmaFeatures: {24jsx: true,25},26ecmaVersion: 12,27sourceType: 'module',28},29plugins: [30'react',31],32rules: {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