Files
NotionNext/.eslintrc.js
2022-11-30 22:08:15 +08:00

37 lines
598 B
JavaScript

module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'plugin:react/recommended',
'plugin:@next/next/recommended',
'standard'
],
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 12,
sourceType: 'module'
},
plugins: [
'react',
'react-hooks'
],
settings: {
react: {
version: 'detect'
}
},
rules: {
'react/prop-types': 'off',
'space-before-function-paren': 0,
'react-hooks/rules-of-hooks': 'error' // Checks rules of Hooks
},
globals: {
React: true
}
}