init: correct .eslintrc and add .prettierrc
This commit is contained in:
16
.eslintrc
16
.eslintrc
@@ -8,12 +8,15 @@
|
||||
"parserOptions": {
|
||||
"requireConfigFile": false,
|
||||
"babelOptions": {
|
||||
"presets": ["@babel/preset-react"]
|
||||
"presets": [
|
||||
"@babel/preset-react"
|
||||
]
|
||||
}
|
||||
},
|
||||
},
|
||||
"extends": [
|
||||
"react-app",
|
||||
"airbnb",
|
||||
"prettier",
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
@@ -58,7 +61,12 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"import/no-extraneous-dependencies": ["warn", {"devDependencies": true}],
|
||||
"import/no-extraneous-dependencies": [
|
||||
"warn",
|
||||
{
|
||||
"devDependencies": true
|
||||
}
|
||||
],
|
||||
"no-unused-vars": "off",
|
||||
"no-console": "off",
|
||||
"no-use-before-define": "off",
|
||||
@@ -82,4 +90,4 @@
|
||||
"react/jsx-no-bind": "off",
|
||||
"unused-imports/no-unused-imports": "warn"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user