aboutsummaryrefslogtreecommitdiff
path: root/modern/.eslintrc.js
blob: 12382f3ea7a10cf16469e9eb9b0c6e1e8dd8e9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
  extends: 'airbnb',
  parserOptions: {
    ecmaVersion: 2020,
  },
  plugins: [
    'react',
  ],
  ignorePatterns: ['service-worker.js', 'serviceWorkerRegistration.js', 'switcher.js'],
  rules: {
    'max-len': [0],
    'no-shadow': [0],
    'no-return-assign': [0],
    'no-param-reassign': [0],
    'no-prototype-builtins': [0],
    'no-nested-ternary': [0],
    'operator-linebreak': [0],
    'import/no-unresolved': [0],
    'object-curly-newline': [1, {
      ObjectExpression: { minProperties: 8, multiline: true, consistent: true },
      ObjectPattern: { minProperties: 8, multiline: true, consistent: true },
      ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },
      ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },
    }],
    'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
    'react/function-component-definition': [1, { namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' }],
    'react/prop-types': [0],
    'react/jsx-props-no-spreading': [0],
    'jsx-a11y/anchor-is-valid': [0],
  },
};