Skip to content

Commit

Permalink
fix: update graphscope eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
baizn committed Jan 20, 2021
1 parent db2367d commit 703cb4b
Showing 1 changed file with 25 additions and 54 deletions.
79 changes: 25 additions & 54 deletions packages/graphin-graphscope/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,57 +1,28 @@
// module.exports = {
// parser: '@typescript-eslint/parser', // Specifies the ESLint parser
// extends: [

// 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
// 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin
// 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
// ],
// parserOptions: {
// ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
// sourceType: 'module', // Allows for the use of imports
// ecmaFeatures: {
// jsx: true, // Allows for the parsing of JSX
// },
// },
// rules: {
// "@typescript-eslint/no-explicit-any":"warn",
// "react/prop-types":0,
// "@typescript-eslint/explicit-function-return-type":"warn"
// // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// // e.g. "@typescript-eslint/explicit-function-return-type": "off",
// },
// settings: {
// react: {
// version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
// },
// },
// };

module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
rules: {
'import/no-unresolved': 0,
'react/prop-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 2,
'react/display-name': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],
'react/jsx-props-no-spreading': 0,
'operator-assignment': 0,
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
rules: {
'import/no-unresolved': 0,
'react/prop-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 2,
'react/display-name': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],
'react/jsx-props-no-spreading': 0,
'operator-assignment': 0,
},
};

0 comments on commit 703cb4b

Please sign in to comment.