Update webpacker and replace vue with react
This commit is contained in:
parent
81fba4f792
commit
51c79ba6a6
18 changed files with 1073 additions and 623 deletions
15
.eslintrc.js
15
.eslintrc.js
|
@ -1,5 +1,6 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
parser: 'babel-eslint',
|
||||
parserOptions: {
|
||||
ecmaVersion: 2017,
|
||||
sourceType: 'module'
|
||||
|
@ -8,18 +9,24 @@ module.exports = {
|
|||
'process': true,
|
||||
'gon': true
|
||||
},
|
||||
plugins: ['prettier'],
|
||||
extends: ['eslint:recommended', 'prettier'],
|
||||
plugins: ['prettier', 'react-hooks'],
|
||||
extends: ['eslint:recommended', 'prettier', 'plugin:react/recommended'],
|
||||
env: {
|
||||
es6: true,
|
||||
browser: true
|
||||
},
|
||||
rules: {
|
||||
'prettier/prettier': 'error'
|
||||
'prettier/prettier': 'error',
|
||||
'react-hooks/rules-of-hooks': 'error'
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect'
|
||||
}
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['config/webpack/**/*.js'],
|
||||
files: ['config/webpack/**/*.js', 'babel.config.js', 'postcss.config.js'],
|
||||
env: {
|
||||
node: true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue