Skip to content

Commit

Permalink
Update lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Sep 4, 2023
1 parent 45cbd46 commit 20b0ba8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions modern/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,21 @@ module.exports = {
plugins: [
'react',
],
ignorePatterns: ['switcher.js', 'theme.js'],
ignorePatterns: ['build/', 'switcher.js', 'theme.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/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],
},
};

0 comments on commit 20b0ba8

Please sign in to comment.