Skip to content

Commit

Permalink
remove nested eslint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Feb 25, 2023
1 parent c4b480e commit 3cb9a50
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 23 deletions.
12 changes: 1 addition & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = {
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react/jsx-runtime',
'prettier',
],

Expand Down Expand Up @@ -221,24 +222,13 @@ module.exports = {
'react/jsx-curly-brace-presence': 'error',
'react/jsx-boolean-value': 'error',
'react/jsx-handler-names': 'error',
'react/jsx-key': 'error',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-undef': 'error',
'react/jsx-pascal-case': 'error',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/no-deprecated': 'error',
'react/no-did-mount-set-state': 'error',
'react/no-did-update-set-state': 'error',
'react/no-direct-mutation-state': 'error',
'react/no-string-refs': 'error',
'react/no-unknown-property': 'error',
'react/prop-types': 0,
'react/prefer-es6-class': 'error',
'react/prefer-stateless-function': 'error',
'react/react-in-jsx-scope': 'error',
'react/self-closing-comp': 'error',
'react/display-name': 'warn',
'react/jsx-no-useless-fragment': 'error',
'react/jsx-filename-extension': [
'error',
Expand Down
1 change: 0 additions & 1 deletion examples/graphiql-parcel/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { GraphiQL } from 'graphiql';

Expand Down
2 changes: 1 addition & 1 deletion examples/graphiql-parcel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
"jsx": "react-jsx"
},
"include": ["src"]
}
3 changes: 0 additions & 3 deletions packages/graphiql-plugin-code-exporter/.eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/graphiql-plugin-explorer/.eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/graphiql-react/.eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion packages/graphiql/__mocks__/@graphiql/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
useResponseEditor as _useResponseEditor,
useVariableEditor as _useVariableEditor,
} from '@graphiql/react';
import React, { useEffect, useRef, useState } from 'react';
import { useEffect, useRef, useState } from 'react';

export {
Argument,
Expand Down

0 comments on commit 3cb9a50

Please sign in to comment.