Skip to content

Commit

Permalink
fix: disable some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pnodet committed Sep 3, 2024
1 parent 1e2cd12 commit 5fc23b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
9 changes: 6 additions & 3 deletions src/configs/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export const javascript = (): Linter.Config[] => {
name: 'nivalis/javascript/setup',
languageOptions: {
globals: { ...globals.browser, ...globals.node },
parserOptions: {
ecmaVersion: 2022,
},
},
},
{
Expand Down Expand Up @@ -474,12 +477,12 @@ export const javascript = (): Linter.Config[] => {
curly: 'error',
'guard-for-in': 'error',
'id-match': 'error',
'init-declarations': 'error',
'init-declarations': 'off',
'logical-assignment-operators': 'error',
'max-classes-per-file': 'error',
'max-depth': 'error',
'no-bitwise': 'error',
'no-continue': 'error',
'no-continue': 'off',
'no-duplicate-imports': 'error',
'no-eq-null': 'error',
'no-inline-comments': 'off',
Expand All @@ -490,7 +493,7 @@ export const javascript = (): Linter.Config[] => {
'no-restricted-imports': 'error',
'no-undefined': 'error',
'no-underscore-dangle': 'off',
'no-useless-assignment': 'error',
'no-useless-assignment': 'off',
'operator-assignment': 'error',
'prefer-destructuring': 'off',
'prefer-named-capture-group': 'off',
Expand Down
19 changes: 10 additions & 9 deletions src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ export const react = (): Linter.Config[] => {
ignorePureComponents: true,
},
],
'react/prop-types': [
'error',
{
customValidators: [],
ignore: ['className', 'children', 'class', 'style'],
skipUndeclared: false,
},
],
// 'react/prop-types': [
// 'error',
// {
// customValidators: [],
// ignore: ['className', 'children', 'class', 'style'],
// skipUndeclared: false,
// },
// ],
'react/react-in-jsx-scope': 'off',
'react/require-render-return': 'error',
'react/self-closing-comp': [
Expand All @@ -205,7 +205,8 @@ export const react = (): Linter.Config[] => {
'react/void-dom-elements-no-children': ['error'],

'react/jsx-no-undef': 'off',
'react/prop-type': 'off',
// TODO: enable this rule
'react/prop-types': 'off',

/** a11y rules
'jsx-a11y/accessible-emoji': ['warn'],
Expand Down

0 comments on commit 5fc23b6

Please sign in to comment.