move eslint config to .eslintrc.json

pull/4/head
Cameron Clough 2022-01-08 20:15:02 +00:00
parent dbca7b8fb0
commit f6e6445c45
2 changed files with 32 additions and 30 deletions

32
.eslintrc.json 100644
View File

@ -0,0 +1,32 @@
{
"extends": [
"airbnb-base"
],
"env": {
"es6": true,
"browser": false
},
"rules": {
"linebreak-style": [
"error",
"windows"
],
"brace-style": [
"error",
"stroustrup"
],
"comma-dangle": [
"error",
"never"
],
"no-unused-vars": [
"warn"
],
"no-var": [
"off"
],
"one-var": [
"off"
]
}
}

View File

@ -51,35 +51,5 @@
"eslint": "^8.6.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.4"
},
"eslintConfig": {
"extends": "airbnb-base",
"env": {
"es6": true,
"browser": false
},
"rules": {
"linebreak-style": [
"error",
"windows"
],
"brace-style": [
"error",
"stroustrup"
],
"comma-dangle": [
"error",
"never"
],
"no-unused-vars": [
"warn"
],
"no-var": [
"off"
],
"one-var": [
"off"
]
}
}
}