mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
32 lines
662 B
JavaScript
32 lines
662 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true
|
|
},
|
|
extends: ['plugin:react/recommended', 'plugin:@next/next/recommended', 'standard', 'prettier'],
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
},
|
|
ecmaVersion: 12,
|
|
sourceType: 'module'
|
|
},
|
|
plugins: ['react', 'react-hooks', 'prettier'],
|
|
settings: {
|
|
react: {
|
|
version: 'detect'
|
|
}
|
|
},
|
|
rules: {
|
|
semi: 0,
|
|
'react/no-unknown-property': 'off', // <style jsx>
|
|
'react/prop-types': 'off',
|
|
'space-before-function-paren': 0,
|
|
'react-hooks/rules-of-hooks': 'error' // Checks rules of Hooks
|
|
},
|
|
globals: {
|
|
React: true
|
|
}
|
|
}
|