Importing form
This commit is contained in:
parent
7b1622a797
commit
789eb7aac4
4 changed files with 119 additions and 0 deletions
40
.eslintrc.js
Executable file
40
.eslintrc.js
Executable file
|
@ -0,0 +1,40 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
node: true
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended'
|
||||
],
|
||||
settings: {
|
||||
react: {
|
||||
pragma: 'React',
|
||||
version: '^16.8.6'
|
||||
}
|
||||
},
|
||||
globals: {
|
||||
Atomics: 'readonly',
|
||||
SharedArrayBuffer: 'readonly'
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true
|
||||
},
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module'
|
||||
},
|
||||
plugins: [
|
||||
'react',
|
||||
'react-hooks'
|
||||
],
|
||||
rules: {
|
||||
'no-console': 'off',
|
||||
'react/prop-types': 0,
|
||||
'no-unused-vars': 'off',
|
||||
'no-undef': 'off',
|
||||
'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks
|
||||
'react-hooks/exhaustive-deps': 'warn' // Checks effect dependencies
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue